From: Hugo Villeneuve Date: Sat, 16 Aug 2014 00:35:51 +0000 (-0400) Subject: Add user to kvm group only at stage end X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=bb6605da165ac255e04fc94c9de999d708275a5f;p=hvlinux.git Add user to kvm group only at stage end --- diff --git a/stage5/pkg/qemu b/stage5/pkg/qemu index 1c8cd52..296e35b 100644 --- a/stage5/pkg/qemu +++ b/stage5/pkg/qemu @@ -6,8 +6,6 @@ hvbuild_post() hv_groupadd kvm - usermod -a -G kvm ${REGUSER} - # Add a Udev rule so that the KVM device gets correct permissions: install -v -m644 ${SCRDIR}/misc/kvm-udev.rules \ /lib/udev/rules.d/65-kvm.rules diff --git a/stage5/post-install b/stage5/post-install index e3f50c8..6437adb 100755 --- a/stage5/post-install +++ b/stage5/post-install @@ -8,7 +8,7 @@ if [ -n "${REGUSER}" ]; then hv_useradd -g users -s /bin/bash -m ${REGUSER} # Add user to these supplementary groups: - usermod -a -G audio,video,cdrom,usb,shutdown ${REGUSER} + usermod -a -G audio,video,cdrom,usb,shutdown,kvm ${REGUSER} fi if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then