steamos: drop curl dep — image-builder doesn't ship it

Build #28301886085 failed with 'curl: command not found' on the URL
resolution step. Upstream Dockerfile only installs wget + python3,
not curl. Use urllib.request.urlopen().geturl() to follow Valve's
redirect and pull the versioned IMG name (e.g. steamdeck-recovery-
4-20250603.5-3.7.10.img.bz2) for the cache key.
This commit is contained in:
mia
2026-06-27 18:44:59 -04:00
parent 9fa102e098
commit de5d60da56

View File

@@ -25,7 +25,8 @@ case "$CHROOT" in /) echo "ERROR: refuse to operate on /"; exit 2 ;; esac
STEAMOS_URL="${STEAMOS_URL:-https://steamdeck-images.steamos.cloud/recovery/steamdeck-repair-latest.img.bz2}"
echo "=== SteamOS: resolve latest image URL ==="
RESOLVED_URL=$(curl -sIL -o /dev/null -w '%{url_effective}' "$STEAMOS_URL")
# python3 is in the upstream image-builder Dockerfile; curl isn't.
RESOLVED_URL=$(python3 -c "import urllib.request; print(urllib.request.urlopen('$STEAMOS_URL').geturl())")
IMG_NAME=$(basename "$RESOLVED_URL")
echo ">> resolved $IMG_NAME"