Merge branch 'crun_workaround' into 'main'

Workaround crun oob_score_adj bug

Closes #7

See merge request qontainers/pipglr!24
This commit is contained in:
Chris Evich
2023-10-04 18:03:24 +00:00

View File

@@ -23,6 +23,15 @@ set -x # show what's happening to make debugging easier
# DNF itself or a dependence may need upgrading, take care of it first.
$DNF upgrade
# WORKAROUND: crun: write to `/proc/self/oom_score_adj`: Permission denied
# Ref: https://github.com/containers/podman/pull/19843
if [[ $(date +%Y%m%d) -gt 20231115 ]]; then
echo "FIXME: Please check if crun 1.9.3+ is available in CentOS Stream-9."
echo "If so, this crun-1.8.7 workaround may be removed."
exit 1
fi
dnf $x install -y crun-1.8.7
$DNF $x install \
podman \
systemd