[Pkg-libvirt-commits] [SCM] Libvirt Debian packaging branch, experimental, updated. debian/0.7.4-1-3-gc5abc2e
Guido Günther
agx at sigxcpu.org
Sat Dec 5 18:07:42 UTC 2009
The following commit has been merged in the experimental branch:
commit c5abc2e9f692b76256c80528452f2e7cc630b7ff
Author: Guido Günther <agx at sigxcpu.org>
Date: Sat Dec 5 18:58:02 2009 +0100
use kvm as primary group for libvirt-qemu user
diff --git a/debian/libvirt-bin.postinst b/debian/libvirt-bin.postinst
index fae859d..ea85ad2 100644
--- a/debian/libvirt-bin.postinst
+++ b/debian/libvirt-bin.postinst
@@ -25,12 +25,13 @@ case "$1" in
fi
# user and group libvirt runs qemu/kvm instances with
- if ! getent group libvirt-qemu >/dev/null; then
- addgroup --system libvirt-qemu
+ if ! getent group kvm >/dev/null; then
+ addgroup --quiet --system kvm
fi
if ! getent passwd libvirt-qemu >/dev/null; then
- adduser --system \
- --ingroup libvirt-qemu \
+ adduser --quiet \
+ --system \
+ --ingroup kvm \
--quiet \
--disabled-login \
--disabled-password \
@@ -38,9 +39,6 @@ case "$1" in
--no-create-home \
-gecos "Libvirt Qemu" \
libvirt-qemu
- if getent group kvm >/dev/null; then
- adduser libvirt-qemu kvm
- fi
fi
# libvirt from 0.6.0 on is safe to restart with running vms:
--
Libvirt Debian packaging
More information about the Pkg-libvirt-commits
mailing list