Skip to main content

max / alloy

build: --fast keeps the install source, only cheapens compression
Author: Max Johnson <me@maxj.phd> · 2026-07-20 22:58 UTC
Signed with PGP, not checked
Commit: d055400d8a0be9e23aa91e38d8f3e814e2184b3d
Parent: 30a32e8
1 file changed, +9 insertions, -5 deletions
@@ -23,7 +23,8 @@
23 23 # build/build-iso.sh --skip-build # reuse the current image
24 24 # build/build-iso.sh --skip-source # omit the oci-archive (faster; the
25 25 # # ISO boots but cannot install)
26 - # build/build-iso.sh --fast # iteration: skip export, cheap compression
26 + # build/build-iso.sh --fast # iteration: cheap compression, keeps source
27 + # build/build-iso.sh --fast --skip-source # boot chain only, cannot install
27 28
28 29 set -euo pipefail
29 30
@@ -44,10 +45,13 @@
44 45 case "$1" in
45 46 --skip-build) SKIP_BUILD=1; shift ;;
46 47 --skip-source) SKIP_SOURCE=1; shift ;;
47 - # Iteration mode: skip the multi-GB export and compress cheaply. The
48 - # result boots and cannot install, which is the right trade while the
49 - # question is still whether the live chain works at all.
50 - --fast) SKIP_SOURCE=1; SKIP_BUILD=1; FAST=1; shift ;;
48 + # Iteration mode: reuse the image and compress cheaply, but still carry
49 + # the install source. Level 19 costs about ten minutes of saturated CPU
50 + # and the export costs about two, so dropping compression is nearly all
51 + # of the win and dropping the source would cost the ability to install
52 + # at all. Pair with --skip-source when only the boot chain is in
53 + # question.
54 + --fast) SKIP_BUILD=1; FAST=1; shift ;;
51 55 -h|--help) sed -n '2,30p' "${BASH_SOURCE[0]}" | sed 's/^# \{0,1\}//'; exit 0 ;;
52 56 *) die "unknown argument: $1 (see --help)" ;;
53 57 esac