turn off error checking temporarily in live image

This commit is contained in:
Louis Abel 2023-04-07 12:31:33 -07:00
parent 4e02e89ed2
commit d131b056a7
Signed by untrusted user: label
GPG Key ID: B37E62D143879B36

View File

@ -25,13 +25,15 @@ done
#
# Even so, we don't support it. These checks are to prevent (you) from
# getting needless headaches.
set +e
[[ -f /run/.containerenv ]]; container_ec=$?
grep -q "0::/$" /proc/1/cgroup; pid_ec=$?
grep -q "0::/$" /proc/self/cgroup; self_ec=$?
if [[ "$pid_ec" == "0" ]] || [[ "$container_ec" == 0 ]] || [[ "$self_ec" == 0 ]]; then
if [[ "$pid_ec" == "0" ]] || [[ "$self_ec" == 0 ]]; then
exit 23
fi
set -e
cd /builddir