From: Zbigniew Jędrzejewski-Szmek Date: Wed, 15 Jan 2025 21:10:16 +0000 (+0100) Subject: uuidd: add sysusers file X-Git-Tag: v2.42-start~85^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f0849f75cc0367694b9035e7cd0dea11ff59d77;p=thirdparty%2Futil-linux.git uuidd: add sysusers file This will allow the user to be created automatically and the scriptlets to create the user and group dropped from the spec file: https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers The config is equivalent to what the Fedora package does, i.e. a dynamically-allocated uid and gid, and an account with nologin as the shell. --- diff --git a/meson.build b/meson.build index 62687a102..d4649e0b9 100644 --- a/meson.build +++ b/meson.build @@ -919,6 +919,11 @@ if systemd.found() systemdsystemunitdir = systemd.get_variable(pkgconfig : 'systemdsystemunitdir') endif +systemd_sysusers_dir = '' +if systemd.found() + systemd_sysusers_dir = systemd.get_variable(pkgconfig : 'sysusers_dir') +endif + sysvinit = get_option('sysvinit').enabled() sysvinitrcdir = sysconfdir + '/init.d' diff --git a/misc-utils/meson.build b/misc-utils/meson.build index 474db30f5..c612440bf 100644 --- a/misc-utils/meson.build +++ b/misc-utils/meson.build @@ -104,6 +104,11 @@ if build_uuidd and systemd.found() install_data( uuidd_socket, install_dir : systemdsystemunitdir) + + install_data( + 'uuidd-sysusers.conf', + install_dir: systemd_sysusers_dir, + rename : 'uuidd.conf') endif if build_uuidd and sysvinit uuidd_rc = configure_file( diff --git a/misc-utils/uuidd-sysusers.conf b/misc-utils/uuidd-sysusers.conf new file mode 100644 index 000000000..afd02eb37 --- /dev/null +++ b/misc-utils/uuidd-sysusers.conf @@ -0,0 +1 @@ +u uuidd - "UUID generator helper daemon" /var/lib/libuuid