diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD index 6281600..b97fbb3 100644 --- a/trunk/PKGBUILD +++ b/trunk/PKGBUILD @@ -62,12 +62,14 @@ validpgpkeys=('C74415BA7C9C7F78F02E1DC34606B8A5DE95BC1F') source=("https://libvirt.org/sources/$pkgname-$pkgver.tar.xz" #{,.asc} libvirtd.conf.d libvirtd-guests.conf.d - libvirt.tmpfiles.d) + libvirt.tmpfiles.d + libvirt.sysusers.d) # "ae102b5d7bccd29bc6015a3e0acefeaa90d097ac.patch::https://libvirt.org/git/?p=libvirt.git;a=patch;h=ae102b5d7bccd29bc6015a3e0acefeaa90d097ac") sha256sums=('89fc63213291d329d537ea96e363fd609160da080322973bd1126d431ff63424' '9d0597bbf2bd7892420cebaf0563236fe1483b83ae95ee6263c1ce7f44a44134' '0896c30100e9e40aee1eb4a2cf0cac2c0bdd5fd7b077b9d2680d90e77435ea66' - '29897854fd6a2ecad8203874f43332f8e4acb468f98e6dd8b64fc2d70fc5598b') + '29897854fd6a2ecad8203874f43332f8e4acb468f98e6dd8b64fc2d70fc5598b' + '6dc7907d6d4d883ac5ea15c195af673c97cff13f4c0493d23196e94bc87f04db') prepare() { cd "$srcdir/$pkgname-$pkgver" @@ -116,6 +118,7 @@ package() { install -D -m644 "$srcdir"/libvirtd.conf.d "$pkgdir"/etc/conf.d/libvirtd install -D -m644 "$srcdir"/libvirtd-guests.conf.d "$pkgdir"/etc/conf.d/libvirt-guests install -D -m644 "$srcdir"/libvirt.tmpfiles.d "$pkgdir"/usr/lib/tmpfiles.d/libvirt.conf + install -D -m644 "$srcdir"/libvirt.sysusers.d "$pkgdir"/usr/lib/sysusers.d/libvirt.conf chown 0:102 "$pkgdir"/usr/share/polkit-1/rules.d chmod 0750 "$pkgdir"/usr/share/polkit-1/rules.d diff --git a/trunk/libvirt.install b/trunk/libvirt.install index 398c1b3..365f7f4 100644 --- a/trunk/libvirt.install +++ b/trunk/libvirt.install @@ -1,5 +1,4 @@ post_install() { - groupadd -r -f libvirt echo ">>> libvirt runs qemu from nobody:kvm by default" echo ">>> change the USER if desired in /etc/libvirt/qemu.conf" echo ">>> See https://wiki.archlinux.org/index.php/Libvirt for more info" diff --git a/trunk/libvirt.sysusers.d b/trunk/libvirt.sysusers.d new file mode 100644 index 0000000..f2544db --- /dev/null +++ b/trunk/libvirt.sysusers.d @@ -0,0 +1 @@ +g libvirt - -