Skip to content

Commit

Permalink
packages-openshift: use mountpoint instead of findmnt
Browse files Browse the repository at this point in the history
It's cleaner that way. Follow-up to 3f53dd3.
  • Loading branch information
jlebon committed Feb 13, 2025
1 parent 0f0474f commit 2a3eaf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages-openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ postprocess:
# kernel overrides today for e.g. kernel-rt.
for x in $(find /etc/yum.repos.d/ -name '*.repo'); do
# ignore repo files that are mountpoints since they're likely secrets
if ! findmnt "$x" &>/dev/null; then
if ! mountpoint "$x"; then
sed -i -e s,enabled=1,enabled=0, $x
fi
done
Expand Down

0 comments on commit 2a3eaf6

Please sign in to comment.