From a4d7dfd336a71811f5890fefb3705fb73ac754b0 Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Fri, 31 Jul 2026 16:40:17 +0200 Subject: [PATCH] iso: --release must satisfy the mode check it is a third case of The mode validation still required one of --bootstrap-env / --pairing, so --release died at 'one of --bootstrap-env (direct) or --pairing (generic) is required' before reaching its own validated branch. Caught by the build's true exit code (rc=1), not by a pipe. --- scripts/iso/build-felhom-iso.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/iso/build-felhom-iso.sh b/scripts/iso/build-felhom-iso.sh index 7011e2a..5a10340 100755 --- a/scripts/iso/build-felhom-iso.sh +++ b/scripts/iso/build-felhom-iso.sh @@ -162,11 +162,13 @@ else [[ -n "$PROFILE" ]] || die "--profile is required" [[ -f "$PROFILE" ]] || die "--profile not found: $PROFILE" fi -# Mode: exactly one of --bootstrap-env (direct, secret-bearing) or --pairing (generic, secret-free). -if $PAIRING; then +# Mode: exactly one of --bootstrap-env (direct), --pairing (generic) or --release (public image). +if $RELEASE; then + : # validated above; a release image has no bootstrap-env by design +elif $PAIRING; then [[ -z "$BOOTSTRAP_ENV" ]] || die "--pairing and --bootstrap-env are mutually exclusive" else - [[ -n "$BOOTSTRAP_ENV" ]] || die "one of --bootstrap-env (direct) or --pairing (generic) is required" + [[ -n "$BOOTSTRAP_ENV" ]] || die "one of --bootstrap-env (direct), --pairing (generic) or --release is required" [[ -f "$BOOTSTRAP_ENV" ]] || die "--bootstrap-env not found: $BOOTSTRAP_ENV" fi