]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(systemd-tmpfiles): passwd and group file management
authorJo Zzsi <jozzsicsataban@gmail.com>
Sun, 15 Dec 2024 01:43:35 +0000 (20:43 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Tue, 31 Dec 2024 20:49:21 +0000 (15:49 -0500)
Do not install full unmodified /etc/passwd and /etc/group form the host.

This code is misleading as it is always a no-op since /etc/passwd
would already exists and this line would be ignored.

modules.d/01systemd-tmpfiles/module-setup.sh

index 117568c7a23acc46ae6a6343b0f89415437e4d06..7976afa4fa73f53f313d0f6121c63b2507af9d90 100755 (executable)
@@ -45,8 +45,6 @@ install() {
     # Install the hosts local user configurations if enabled.
     if [[ $hostonly ]]; then
         inst_multiple -H -o \
-            /etc/group \
-            /etc/passwd \
             "$tmpfilesconfdir/*.conf" \
             "$systemdsystemconfdir"/systemd-tmpfiles-clean.service \
             "$systemdsystemconfdir/systemd-tmpfiles-clean.service.d/*.conf" \