From f93f9e8ea870fc721f58962a85524a0aadc476c7 Mon Sep 17 00:00:00 2001 From: vasilito Date: Wed, 15 Jul 2026 00:40:23 +0900 Subject: [PATCH] build-system: add redbear-bare to dispatch + integrate + build-all The redbear-bare target (added in 48a6f4c20b) was not registered in the build dispatchers. Running build-redbear.sh redbear-bare silently exited with 'ERROR: Unknown config redbear-bare'. Fix: - build-redbear.sh: extend the case statement + usage block + error message to include redbear-bare - integrate-redbear.sh: add config/redbear-bare.toml to the configs array so source-tree integration picks up the bare target too - build-all-isos.sh: include redbear-bare in the targets list This closes the gap where the bare target existed as a config file and as a recipe branch (REDBEAR_BARE_INITFS) but was invisible to the build dispatch layer. (NO AI attribution) --- local/scripts/build-all-isos.sh | 2 +- local/scripts/build-redbear.sh | 5 +++-- local/scripts/integrate-redbear.sh | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/local/scripts/build-all-isos.sh b/local/scripts/build-all-isos.sh index 072129822f..c5d38ec597 100755 --- a/local/scripts/build-all-isos.sh +++ b/local/scripts/build-all-isos.sh @@ -7,7 +7,7 @@ JOBS="${JOBS:-$(nproc)}" ALLOW_UPSTREAM="${ALLOW_UPSTREAM:-0}" BUILD_LOG_DIR="${PROJECT_ROOT}/build/logs" -targets=(redbear-full redbear-mini redbear-grub) +targets=(redbear-full redbear-mini redbear-grub redbear-bare) mkdir -p "$BUILD_LOG_DIR" diff --git a/local/scripts/build-redbear.sh b/local/scripts/build-redbear.sh index c6e5694333..b0be86ca40 100755 --- a/local/scripts/build-redbear.sh +++ b/local/scripts/build-redbear.sh @@ -260,6 +260,7 @@ Configs: redbear-full Desktop/graphics target (default) redbear-mini Text-only console/recovery target redbear-grub Text-only with GRUB boot manager + redbear-bare Stripped-to-bare-minimum: kernel+7-initfs-daemons+zsh login Environment: REDBEAR_RELEASE If set, builds from immutable release archives. @@ -301,11 +302,11 @@ fi [ ${#POSITIONAL[@]} -eq 1 ] && CONFIG="${POSITIONAL[0]}" case "$CONFIG" in - redbear-full|redbear-mini|redbear-grub) + redbear-full|redbear-mini|redbear-grub|redbear-bare) ;; *) echo "ERROR: Unknown config '$CONFIG'" >&2 - echo "Supported: redbear-full, redbear-mini, redbear-grub" >&2 + echo "Supported: redbear-full, redbear-mini, redbear-grub, redbear-bare" >&2 exit 1 ;; esac diff --git a/local/scripts/integrate-redbear.sh b/local/scripts/integrate-redbear.sh index 83ed07eae0..a9bed8ad42 100755 --- a/local/scripts/integrate-redbear.sh +++ b/local/scripts/integrate-redbear.sh @@ -202,6 +202,7 @@ declare -a redbear_configs=( "config/redbear-mini.toml" "config/redbear-full.toml" "config/redbear-grub.toml" + "config/redbear-bare.toml" ) declare -a found_configs=()