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
(cherry picked from commit 455dbb585583bd2e1d40ebb61c335a2ad6dff053)

Resolves: RHEL-53114
  • Loading branch information
aafeijoo-suse authored and pvalena committed Aug 19, 2024
1 parent 1a57cf7 commit f194130
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 @@ -194,6 +194,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 f194130

Please sign in to comment.