]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Remove redundant kvm group config in sysusers.d
authorAchill Gilgenast via Devel <devel@lists.libvirt.org>
Sat, 15 Nov 2025 11:19:11 +0000 (12:19 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 21 Nov 2025 12:55:50 +0000 (12:55 +0000)
It's already defined by default in systemd:
https://github.com/systemd/systemd/blob/v257.6/sysusers.d/basic.conf.in#L32

Adding it again here in libvirt-qemu.sysusers.conf causes the following
warning by validating it with sd-sysuers:

/usr/lib/sysusers.d/libvirt-qemu.conf:1: Conflict with earlier configuration for group 'kvm' in /usr/lib/sysusers.d/basic.conf:32, ignoring line.

On Fedora/RHEL systemd is built with -Dkvm-gid=36 so there is no change
in the allocated GID on these platforms. Other platforms have the same
facility available to them if they wish to retain a fixed GID.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Achill Gilgenast <achill@achill.org>
src/qemu/libvirt-qemu.sysusers.conf

index 3189191e738a56383862245db8ab79ca7bea193b..05c35f94d81442edbd8431d375d5761b6d504ce4 100644 (file)
@@ -1,4 +1,3 @@
-g kvm 36
 g qemu 107
 u qemu 107:qemu "qemu user" - -
 m qemu kvm