mirror of
https://github.com/ps5-linux/ps5-linux-image.git
synced 2026-07-16 01:50:40 +00:00
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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user