]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Add sysusers config file for qemu & kvm user/groups
authorTimothée Ravier <tim@siosm.fr>
Fri, 2 Feb 2024 18:59:44 +0000 (18:59 +0000)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 13 Feb 2024 15:59:57 +0000 (16:59 +0100)
commita2c3e390f7bedf36f4ddc544d09fe3b8772c5c6f
tree9a9855679d420979015aafa507a060feae6e1eec
parent21b62329f3a211f30a522b9c9dda04a4b8eb668e
qemu: Add sysusers config file for qemu & kvm user/groups

Install a systemd sysusers config file for the qemu & kvm user/groups.

We can not use the sysusers_create_compat macro in the RPM specfile to
create those users as we want to keep the specfile standalone and not
relying on additionnal files.

Update the specfile to make the commands closer to what is generated by
the current macro.

See: https://src.fedoraproject.org/rpms/libvirt/pull-request/22
See: https://gitlab.com/libvirt/libvirt/-/merge_requests/319
See: https://bugzilla.redhat.com/show_bug.cgi?id=2095429
See: https://docs.fedoraproject.org/en-US/packaging-guidelines/UsersAndGroups/

Based on previous work by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Timothée Ravier <tim@siosm.fr>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
libvirt.spec.in
src/qemu/libvirt-qemu.sysusers.conf [new file with mode: 0644]
src/qemu/meson.build