Skip to content

Commit da55e26

Browse files
aafeijoo-susejohannbg
authored andcommitted
fix(systemd): set right permissions for the machine-id file
Fixes issue #1864
1 parent ebbcf97 commit da55e26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: modules.d/00systemd/module-setup.sh

+1
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ install() {
192192

193193
if ! [[ -e "$initdir/etc/machine-id" ]]; then
194194
: > "$initdir/etc/machine-id"
195+
chmod 444 "$initdir/etc/machine-id"
195196
fi
196197

197198
# install adm user/group for journald

0 commit comments

Comments
 (0)