diff options
author | Matthias Maier <tamiko@gentoo.org> | 2017-01-22 09:55:05 -0600 |
---|---|---|
committer | Matthias Maier <tamiko@gentoo.org> | 2017-01-22 10:28:25 -0600 |
commit | 875198b0bffbe4060ddb3c3bedb52632c80a6ba7 (patch) | |
tree | d589796713af870b4f968c47075e3c184301094b /app-emulation/libvirt/libvirt-9999.ebuild | |
parent | dev-python/attrs: sparc stable wrt bug #606330 (diff) | |
download | gentoo-875198b0bffbe4060ddb3c3bedb52632c80a6ba7.tar.gz gentoo-875198b0bffbe4060ddb3c3bedb52632c80a6ba7.tar.bz2 gentoo-875198b0bffbe4060ddb3c3bedb52632c80a6ba7.zip |
app-emulation/libvirt: Do not create qemu user if USE=-qemu, bug #601678
Package-Manager: Portage-2.3.0, Repoman-2.3.1
Diffstat (limited to 'app-emulation/libvirt/libvirt-9999.ebuild')
-rw-r--r-- | app-emulation/libvirt/libvirt-9999.ebuild | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/app-emulation/libvirt/libvirt-9999.ebuild b/app-emulation/libvirt/libvirt-9999.ebuild index 609bf97449e2..81795e4a7f6b 100644 --- a/app-emulation/libvirt/libvirt-9999.ebuild +++ b/app-emulation/libvirt/libvirt-9999.ebuild @@ -130,15 +130,9 @@ PATCHES=( ) pkg_setup() { - enewgroup qemu 77 - enewuser qemu 77 -1 -1 "qemu,kvm" - - # Some people used the masked ebuild which was not adding the qemu - # user to the kvm group originally. This results in VMs failing to - # start for some users. bug #430808 - egetent group kvm | grep -q qemu - if [[ $? -ne 0 ]]; then - gpasswd -a qemu kvm + if use qemu; then + enewgroup qemu 77 + enewuser qemu 77 -1 -1 "qemu,kvm" fi # Check kernel configuration: |