]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
qemu: Remove the KVM group if not created as system group
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Jan 2026 11:35:07 +0000 (11:35 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Jan 2026 11:35:07 +0000 (11:35 +0000)
Fixes: #13922 - Core 199 - QEMU VMs no longer start - libfuse3.so.4 missing
Reported-by: Arno Jonker <admin@greenbull.nl>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/qemu
src/paks/qemu/install.sh

index ca1115c76fe666d8d30211e4c9fe78926ef62710..8cd674a164fc95dd235d07acde020a9423f3c081 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    = 52
+PAK_VER    = 53
 
 DEPS       = alsa libusbredir spice libslirp
 
index e0b84a629c8ed0dfe343c25f8a7487f9922e5b01..f96e59ac563392364d4ac4bb954614dd8c4e566b 100644 (file)
 ############################################################################
 #
 . /opt/pakfire/lib/functions.sh
+
+# If the KVM group has already been created as a non-system group, we will
+# remove it and create it again as a system group
+kvm_id="$(getent group kvm | cut -d: -f3)"
+if [ -n "${kvm_id}" -a "${kvm_id}" -ge 1000 ]; then
+       groupdel kvm
+fi
+
 #create the group kvm when they not exist
 getent group kvm >/dev/null || groupadd -r kvm
 extract_files