Skip to content

Commit

Permalink
manifest: chmod files to set the writable permissions
Browse files Browse the repository at this point in the history
In order to make chrony use NTP settings from DHCP (#412),
we need to chmod the following files to unset the writable permissions. Git tracks only the executable bit
of the permissions so when the files get pulled locally they could have the group write bit set. When that
happens we get an error like: `Cannot execute '/etc/NetworkManager/dispatcher.d/20-coreos-chrony-dhcp': writable by group or other`
  • Loading branch information
sohankunkerkar authored and dustymabe committed Aug 21, 2020
1 parent e6ea408 commit 0352445
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,13 @@ postprocess:
mkdir -p /etc/fedora-coreos-pinger/config.d /etc/zincati/config.d
echo -e '# https://github.com/coreos/fedora-coreos-tracker/issues/163\nreporting.enabled = false' > /etc/fedora-coreos-pinger/config.d/90-disable-on-non-production-stream.toml
echo -e '# https://github.com/coreos/fedora-coreos-tracker/issues/163\nupdates.enabled = false' > /etc/zincati/config.d/90-disable-on-non-production-stream.toml
# In order to make chrony use NTP settings from DHCP
# (https://github.com/coreos/fedora-coreos-config/pull/412), we need
# to chmod the following files to unset the writable permissions.
# Git tracks only the executable bit of the permissions so when
# the files get pulled locally they could have the group write bit set.
# When that happens we get an error like:
# `Cannot execute '/etc/NetworkManager/dispatcher.d/20-coreos-chrony-dhcp': writable by group or other`
chmod 755 /etc/NetworkManager/dispatcher.d/20-coreos-chrony-dhcp
chmod 755 /usr/libexec/coreos-chrony-helper
chmod 755 /usr/lib/systemd/system-generators/coreos-platform-chrony

0 comments on commit 0352445

Please sign in to comment.