Commit cb8737ef authored by Michael Tokarev's avatar Michael Tokarev
Browse files

remove /dev/kvm permission handling (moved to systemd 239-6) (#892945)

parent 8ea83360
#! /bin/sh
set -e
if [ "$1" = configure ] ; then
# Add the kvm group unless it's already there
if ! getent group kvm >/dev/null; then
addgroup --quiet --system kvm || true
fi
fi
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
# if we just installed the package, udev rules aren't picked up yet,
# so udev may have created the device (/dev/kvm) with default permissions.
# Fix it here, but only if the perms are like default.
# (See #607391)
if [ -c /dev/kvm -a ! -L /dev/kvm ] && [ .$(stat -c %u%g /dev/kvm) = .00 ]
then
chgrp kvm /dev/kvm
chmod 0660 /dev/kvm
fi
exit 0
KERNEL=="kvm", GROUP="kvm", MODE="0660"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment