]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
qemu: Create the KVM group as system group
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 2 Dec 2025 11:25:24 +0000 (11:25 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 2 Dec 2025 11:25:24 +0000 (11:25 +0000)
Otherwise udev will ignore any rules that involve this group.

This might require some manual intervention for users who are running
this add-on on a system that has the kvm group created as a non-system
group.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/qemu
src/paks/qemu/install.sh

index d7a0ba9cad92a59a88289e1b981da90f579de136..ca1115c76fe666d8d30211e4c9fe78926ef62710 100644 (file)
--- a/lfs/qemu
+++ b/lfs/qemu
@@ -35,7 +35,7 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = qemu
-PAK_VER    = 51
+PAK_VER    = 52
 
 DEPS       = alsa libusbredir spice libslirp
 
index e44ba5eca73b537ad2fac02b1d2301ef54b458ac..e0b84a629c8ed0dfe343c25f8a7487f9922e5b01 100644 (file)
@@ -23,7 +23,7 @@
 #
 . /opt/pakfire/lib/functions.sh
 #create the group kvm when they not exist
-getent group kvm >/dev/null || groupadd kvm
+getent group kvm >/dev/null || groupadd -r kvm
 extract_files
 restore_backup ${NAME}
 echo shm       /dev/shm        tmpfs   defaults,size=256M      0       0 >> /etc/fstab