Improve read-only status check and disable logic for SteamOS

This commit is contained in:
2026-06-22 20:58:04 +02:00
parent ccfd9992c6
commit dd333d106b

4
run.sh
View File

@@ -66,8 +66,8 @@ prepare_steamos_package_install() {
return
fi
readonly_status="$(steamos-readonly status 2>/dev/null || true)"
if printf '%s\n' "$readonly_status" | grep -qi enabled; then
readonly_status="$(as_root steamos-readonly status 2>/dev/null || true)"
if printf '%s\n' "$readonly_status" | grep -Eqi '(^|[[:space:]])enable(d)?($|[[:space:]])'; then
echo "Temporarily disabling the SteamOS read-only filesystem"
as_root steamos-readonly disable
STEAMOS_RESTORE_READONLY=1