iso: fresh work dir each build (avoid stale-stage reuse) + modern bootmodes

mkarchiso reuses completed stages in the work dir -> a 'too short' build that
ships a stale airootfs. bootstrap now 'rm -rf' the work dir first. Also switch
profiledef bootmodes to the non-deprecated names (bios.syslinux, uefi.systemd-boot).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-20 02:09:54 +02:00
parent d7691994db
commit 1b81ad4914
16 changed files with 56 additions and 44 deletions
+6 -3
View File
@@ -39,10 +39,13 @@ install -m644 "$HERE/overrides/pacman.conf" "$PROFILE/pacman.conf"
cp -rT "$HERE/overrides/airootfs" "$PROFILE/airootfs"
echo "==> profile ready: $PROFILE"
WORK=/tmp/tanin-work
if [ "${1:-}" = "--build" ]; then
echo "==> building ISO (sudo mkarchiso) …"
sudo mkarchiso -v -w /tmp/tanin-work -o "$HERE/out" "$PROFILE"
echo "==> clean work dir (mkarchiso reuses stale stages otherwise -> 'too short' builds)"
sudo rm -rf "$WORK"
echo "==> building ISO (sudo mkarchiso) … this takes a while (downloads + squashfs)"
sudo mkarchiso -v -w "$WORK" -o "$HERE/out" "$PROFILE"
echo "ISO written to $HERE/out/"
else
echo "build with: sudo mkarchiso -v -w /tmp/tanin-work -o \"$HERE/out\" \"$PROFILE\""
echo "build with: sudo rm -rf $WORK && sudo mkarchiso -v -w $WORK -o \"$HERE/out\" \"$PROFILE\""
fi