* [git.ipfire.org] IPFire 2.x development tree branch, master, updated. d656b7af6411d0306513b853a552f56d6713c174
@ 2025-12-02 11:28 Michael Tremer
0 siblings, 0 replies; only message in thread
From: Michael Tremer @ 2025-12-02 11:28 UTC (permalink / raw)
To: ipfire-scm
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, master has been updated
via d656b7af6411d0306513b853a552f56d6713c174 (commit)
via c26c281d6447d40c26c421dbab42aff94cd9907b (commit)
via 5195e0085ef2b320fe9a6312e5135a72f6c030bc (commit)
from 75ecc4831af721e93f8eef3a6879a15c486137ed (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit d656b7af6411d0306513b853a552f56d6713c174
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Tue Dec 2 11:27:11 2025 +0000
libvirt: Fix the update script
I don't know why this all has to be copied like this, but the recent
changes from the install script should be applied here, too.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
commit c26c281d6447d40c26c421dbab42aff94cd9907b
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Tue Dec 2 11:25:24 2025 +0000
qemu: Create the KVM group as system group
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>
commit 5195e0085ef2b320fe9a6312e5135a72f6c030bc
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Tue Dec 2 11:24:32 2025 +0000
libvirt: Create non-privileged users as system users
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-----------------------------------------------------------------------
Summary of changes:
lfs/libvirt | 2 +-
lfs/qemu | 2 +-
src/paks/libvirt/install.sh | 9 ++++++---
src/paks/libvirt/update.sh | 4 ++--
src/paks/qemu/install.sh | 2 +-
5 files changed, 11 insertions(+), 8 deletions(-)
Difference in files:
diff --git a/lfs/libvirt b/lfs/libvirt
index 659b42c586..6e3f1c8749 100644
--- a/lfs/libvirt
+++ b/lfs/libvirt
@@ -35,7 +35,7 @@ DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
SUP_ARCH = x86_64 aarch64
PROG = libvirt
-PAK_VER = 43
+PAK_VER = 44
DEPS = ebtables libpciaccess ovmf swtpm qemu
diff --git a/lfs/qemu b/lfs/qemu
index d7a0ba9cad..ca1115c76f 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 = 51
+PAK_VER = 52
DEPS = alsa libusbredir spice libslirp
diff --git a/src/paks/libvirt/install.sh b/src/paks/libvirt/install.sh
index a11caa4341..288711ccb4 100644
--- a/src/paks/libvirt/install.sh
+++ b/src/paks/libvirt/install.sh
@@ -24,9 +24,12 @@
. /opt/pakfire/lib/functions.sh
# creates a new user and group called libvirt-remote if they not exist
-getent group libvirt-remote >/dev/null || groupadd libvirt-remote
-getent passwd libvirt-remote >/dev/null || \
-useradd -m -g libvirt-remote -s /bin/bash "libvirt-remote"
+if ! getent group libvirt-remote >/dev/null; then
+ groupadd -r libvirt-remote
+fi
+if ! getent passwd libvirt-remote >/dev/null; then
+ useradd -r -m -g libvirt-remote -s /bin/bash "libvirt-remote"
+fi
extract_files
diff --git a/src/paks/libvirt/update.sh b/src/paks/libvirt/update.sh
index ab57cbf627..c9e9dd54b5 100644
--- a/src/paks/libvirt/update.sh
+++ b/src/paks/libvirt/update.sh
@@ -41,9 +41,9 @@ rm -f /etc/rc.d/rc*.d/*virtlogd
#
# creates a new user and group called libvirt-remote if they not exist
-getent group libvirt-remote >/dev/null || groupadd libvirt-remote
+getent group libvirt-remote >/dev/null || groupadd -r libvirt-remote
getent passwd libvirt-remote >/dev/null || \
-useradd -m -g libvirt-remote -s /bin/bash "libvirt-remote"
+ useradd -r -m -g libvirt-remote -s /bin/bash "libvirt-remote"
extract_files
diff --git a/src/paks/qemu/install.sh b/src/paks/qemu/install.sh
index e44ba5eca7..e0b84a629c 100644
--- a/src/paks/qemu/install.sh
+++ b/src/paks/qemu/install.sh
@@ -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
hooks/post-receive
--
IPFire 2.x development tree
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-12-02 11:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-02 11:28 [git.ipfire.org] IPFire 2.x development tree branch, master, updated. d656b7af6411d0306513b853a552f56d6713c174 Michael Tremer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox