# We need to do that for ceilometer-agent-compute
libvirt_user_group () {
+ if dpkg-vendor --derives-from ubuntu ; then
+ LIBVIRT_GROUP=libvirtd
+ else
+ LIBVIRT_GROUP=libvirt
+ fi
+
if ! getent group libvirt >/dev/null; then
- addgroup --system libvirt
+ addgroup --system ${LIBVIRT_GROUP}
fi
# user and group libvirt runs qemu/kvm instances with
* Ran wrap-and-sort to clean debian/control.
* Replaced pkgos_var_user_group nova by pkgos_adduser, as we don't want to
create the log / lib dirs of nova.
+ * Creates the correct libvirt group if the package is installed in Ubuntu.
-- Thomas Goirand <zigo@debian.org> Mon, 27 May 2013 11:07:59 +0800