From: Michael Tremer Date: Fri, 9 Jan 2026 11:35:07 +0000 (+0000) Subject: qemu: Remove the KVM group if not created as system group X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=415a10ae5647a8e2ce6fbb210dafda67a182c4bb;p=ipfire-2.x.git qemu: Remove the KVM group if not created as system group Fixes: #13922 - Core 199 - QEMU VMs no longer start - libfuse3.so.4 missing Reported-by: Arno Jonker Signed-off-by: Michael Tremer --- diff --git a/lfs/qemu b/lfs/qemu index ca1115c76..8cd674a16 100644 --- 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 diff --git a/src/paks/qemu/install.sh b/src/paks/qemu/install.sh index e0b84a629..f96e59ac5 100644 --- a/src/paks/qemu/install.sh +++ b/src/paks/qemu/install.sh @@ -22,6 +22,14 @@ ############################################################################ # . /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