From ec3243a99715fc7ad07d7a6643a7e4fc3623f6e9 Mon Sep 17 00:00:00 2001 From: The412Banner Date: Fri, 2 Oct 2026 13:58:23 -0400 Subject: [PATCH] bannerlator-steam-x64: a finished rootfs download is not a failure curl -C - on a complete file gets 416, which set -e turned into an abort. The Ubuntu 24.04 image is 525 MB, not 850. --- .../overlay/usr/local/bin/bannerlator-steam-x64 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/linuxfs/overlay/usr/local/bin/bannerlator-steam-x64 b/tools/linuxfs/overlay/usr/local/bin/bannerlator-steam-x64 index e59655fb7..cf2ebcf0b 100755 --- a/tools/linuxfs/overlay/usr/local/bin/bannerlator-steam-x64 +++ b/tools/linuxfs/overlay/usr/local/bin/bannerlator-steam-x64 @@ -11,8 +11,8 @@ # steamapps is the arm64 client's. Only one client runs at a time (same account), so the arm64 # one is shut down first. # -# First run downloads FEX (this repo's release), FEX's Ubuntu 24.04 x86 rootfs (~850 MB, unpacked -# ~2.5 GB) and the x86 client (~600 MB). Log: $X64_HOME/steam-x64.log. +# First run downloads FEX (this repo's release), FEX's Ubuntu 24.04 x86 rootfs (~525 MB, unpacked +# ~1.5 GB) and the x86 client (~600 MB). Log: $X64_HOME/steam-x64.log. set -eu FEX_TAG=fex-2609-r1 FEX_SHA256=bcc578c87a4d38680881e5d7564e31444467b5ce48f6dedf369536e57819afea @@ -45,7 +45,11 @@ step "FEX: $(/usr/local/bin/FEX --version 2>&1 | head -1)" # --- x86 rootfs -------------------------------------------------------------------------------- if [ ! -f "$ROOTFS/.droiddeck-complete" ]; then step "downloading FEX's Ubuntu 24.04 x86 rootfs" - curl -fL --progress-bar -C - "$ROOTFS_URL" -o "$X64_HOME/rootfs.sqsh" + # Resumes a part-done download; a finished one answers 416, which is not a failure here. + curl -fL --progress-bar -C - "$ROOTFS_URL" -o "$X64_HOME/rootfs.sqsh" || { + rc=$? + [ "$rc" = 22 ] && [ -s "$X64_HOME/rootfs.sqsh" ] || { step "rootfs download failed (curl $rc)"; exit 1; } + } step "unpacking the rootfs" rm -rf "$ROOTFS" # Ownership and xattrs mean nothing in this guest; device nodes cannot be made here and are not