[packages/qemu] - add kvm group (from qemu-kvm spec)

baggins baggins at pld-linux.org
Sun Nov 3 21:30:28 CET 2013


commit a45c10b67237ad5883342840e91cacacc7e36f97
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Nov 3 21:21:56 2013 +0100

    - add kvm group (from qemu-kvm spec)

 qemu.spec | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/qemu.spec b/qemu.spec
index 267aca2..70b6d89 100644
--- a/qemu.spec
+++ b/qemu.spec
@@ -717,8 +717,9 @@ cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{n
 rm -rf $RPM_BUILD_ROOT
 
 %pre common
+%groupadd -g 160 kvm
 %groupadd -g 276 qemu
-%useradd -u 276 -g qemu -c "QEMU User" qemu
+%useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
 
 %post common
 %systemd_post ksm.service
@@ -732,6 +733,7 @@ rm -rf $RPM_BUILD_ROOT
 if [ "$1" = "0" ]; then
 	%userremove qemu
 	%groupremove qemu
+	%groupremove kvm
 fi
 %systemd_reload
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/qemu.git/commitdiff/18e669280f9110eed077132bcbd5a37101cc89bf



More information about the pld-cvs-commit mailing list