Skip to content

Commit

Permalink
fix(systemd): set right permissions for the machine-id file
Browse files Browse the repository at this point in the history
Fixes issue #1864
  • Loading branch information
aafeijoo-suse authored and johannbg committed Aug 12, 2022
1 parent ebbcf97 commit da55e26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules.d/00systemd/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da55e26

Please sign in to comment.