]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(systemd): set right permissions for the machine-id file
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Mon, 18 Jul 2022 09:03:32 +0000 (11:03 +0200)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Fri, 12 Aug 2022 11:48:33 +0000 (11:48 +0000)
Fixes issue #1864

modules.d/00systemd/module-setup.sh

index 433e475851564401e4d66738627a519555a53db7..1f255d807e4156874655d8d190dff6344ecb7e68 100755 (executable)
@@ -192,6 +192,7 @@ install() {
 
     if ! [[ -e "$initdir/etc/machine-id" ]]; then
         : > "$initdir/etc/machine-id"
+        chmod 444 "$initdir/etc/machine-id"
     fi
 
     # install adm user/group for journald