Refs flare-edge#2210 (second SDK half; stacked on #37, which is merged).
Why
The flare-edge flow jobs that boot the rig get the BusyBox binary from the image build job's artifact and have no cross compiler. RIG_BUSYBOX=panel always ran build-busybox.sh, so those jobs could not use the panel BusyBox. Installing the cross compiler in every flow job costs apt time per job and gives a second binary per job. Keeping the multiarch binary as a fallback is what hid flare-edge #1903, #2002 and #1349.
What
qemu/lib.sh: qemu_busybox_panel_inputs, one sha256 over the source pin and every committed input under qemu/busybox/ (no compiler). With RIG_BUSYBOX=panel and BUSYBOX set, qemu_get_busybox takes that binary only when BUSYBOX.inputs equals the value for this tree; otherwise it fails closed. The source pin moved here from build-busybox.sh.
qemu/build-busybox.sh writes <binary>.inputs next to the binary, also on the up-to-date path, and removes a stale one before a rebuild.
qemu/tests/busybox-panel-test.sh: 6 new cases: missing, foreign and matching .inputs, a missing binary, and a config edit and a patch edit changing the inputs.
CI qemu-tools also builds a panel initramfs from the prebuilt binary.
qemu/README.md, qemu/busybox/README.md updated.
The default stays RIG_BUSYBOX=multiarch, so no existing run changes.
Gate on bfe-mpc-0056 (lane-remote, pass 627)
bash qemu/build-busybox.sh: OK, same binary sha256 6d949435... as #37.
bash qemu/tests/busybox-panel-test.sh: all checks passed (6 new cases).
QEMU_USER=qemu-arm bash qemu/tests/busybox-panel-help.sh: 282 applets, list and --help equal to the panel's.
RIG_BUSYBOX=panel BUSYBOX=qemu/out/busybox-armv7l-panel bash qemu/mkinitramfs.sh: OK.
shellcheck: the first CI run (9610) failed qemu-tools on two info notes from shellcheck 0.9.0 (SC2015 in qemu_get_busybox, SC2012 in the test). 8fc3297 rewrites both with no behaviour change. CI's exact shellcheck -x ... command is now clean on the workstation (0.10.0, which reports the same two notes on 820af4b). After 8fc3297 on 0056: build OK, busybox-panel-test all checks passed, mkinitramfs with the prebuilt binary OK, and a foreign .inputs is refused (exit 1).
The consumer is flare-edge branch rb/w31-rig-busybox-panel (SDK pin to this branch, tools/ci-stage-qemu-busybox.sh in the 5 rig jobs). It was checked end to end against this commit: the stager, the env and mkinitramfs used the prebuilt binary, and the initramfs /bin/busybox is 6d949435. Its PR opens after this merges, with the pin on the merge commit.
Refs flare-edge#2210 (second SDK half; stacked on #37, which is merged).
## Why
The flare-edge flow jobs that boot the rig get the BusyBox binary from the image build job's artifact and have no cross compiler. `RIG_BUSYBOX=panel` always ran `build-busybox.sh`, so those jobs could not use the panel BusyBox. Installing the cross compiler in every flow job costs apt time per job and gives a second binary per job. Keeping the multiarch binary as a fallback is what hid flare-edge #1903, #2002 and #1349.
## What
- `qemu/lib.sh`: `qemu_busybox_panel_inputs`, one sha256 over the source pin and every committed input under `qemu/busybox/` (no compiler). With `RIG_BUSYBOX=panel` and `BUSYBOX` set, `qemu_get_busybox` takes that binary only when `BUSYBOX.inputs` equals the value for this tree; otherwise it fails closed. The source pin moved here from `build-busybox.sh`.
- `qemu/build-busybox.sh` writes `<binary>.inputs` next to the binary, also on the up-to-date path, and removes a stale one before a rebuild.
- `qemu/tests/busybox-panel-test.sh`: 6 new cases: missing, foreign and matching `.inputs`, a missing binary, and a config edit and a patch edit changing the inputs.
- CI qemu-tools also builds a panel initramfs from the prebuilt binary.
- `qemu/README.md`, `qemu/busybox/README.md` updated.
The default stays `RIG_BUSYBOX=multiarch`, so no existing run changes.
## Gate on bfe-mpc-0056 (lane-remote, pass 627)
- `bash qemu/build-busybox.sh`: OK, same binary sha256 6d949435... as #37.
- `bash qemu/tests/busybox-panel-test.sh`: all checks passed (6 new cases).
- `QEMU_USER=qemu-arm bash qemu/tests/busybox-panel-help.sh`: 282 applets, list and `--help` equal to the panel's.
- `RIG_BUSYBOX=panel BUSYBOX=qemu/out/busybox-armv7l-panel bash qemu/mkinitramfs.sh`: OK.
- busybox-fetch, init-chain, console-shell, stage-rootfs-perms, rootfs-overlay tests: pass.
- 4/4 mutants of the new checks caught.
- shellcheck: the first CI run (9610) failed qemu-tools on two info notes from shellcheck 0.9.0 (SC2015 in `qemu_get_busybox`, SC2012 in the test). 8fc3297 rewrites both with no behaviour change. CI's exact `shellcheck -x ...` command is now clean on the workstation (0.10.0, which reports the same two notes on 820af4b). After 8fc3297 on 0056: build OK, busybox-panel-test all checks passed, mkinitramfs with the prebuilt binary OK, and a foreign `.inputs` is refused (exit 1).
The consumer is flare-edge branch rb/w31-rig-busybox-panel (SDK pin to this branch, tools/ci-stage-qemu-busybox.sh in the 5 rig jobs). It was checked end to end against this commit: the stager, the env and mkinitramfs used the prebuilt binary, and the initramfs `/bin/busybox` is 6d949435. Its PR opens after this merges, with the pin on the merge commit.
Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01KerYPVh72hhNgKi3wS5ijG
The flare-edge flow jobs get the rig BusyBox from the image build job's
artifact and have no cross compiler, so RIG_BUSYBOX=panel, which always ran
build-busybox.sh, could not be used there.
- qemu/lib.sh: qemu_busybox_panel_inputs, one sha256 over the source pin
and every committed input under qemu/busybox/ (no compiler). With
RIG_BUSYBOX=panel and BUSYBOX set, qemu_get_busybox takes that binary only
when BUSYBOX.inputs equals the value for this tree; otherwise it fails
closed. The source pin moved here from build-busybox.sh.
- qemu/build-busybox.sh writes <binary>.inputs next to the binary (also on
the up-to-date path) and removes a stale one before a rebuild.
- busybox-panel-test.sh: missing, foreign and matching .inputs, a missing
binary, and a config or patch edit changing the inputs.
- CI qemu-tools: a panel initramfs from the prebuilt binary.
Refs flare-edge#2210
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KerYPVh72hhNgKi3wS5ijG
CI's shellcheck 0.9.0 failed qemu-tools on #38: SC2015 on the
`[ -f ] && [ = ] || { ... }` refusal in qemu_get_busybox (now an if), and
SC2012 on the `ls | head` that picks a patch to edit in
busybox-panel-test.sh (now find | sort | head). No behaviour change.
Refs flare-edge#2210
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KerYPVh72hhNgKi3wS5ijG
noah
merged commit ff3d1de088 into rebuild2026-10-29 09:23:28 -06:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Refs flare-edge#2210 (second SDK half; stacked on #37, which is merged).
Why
The flare-edge flow jobs that boot the rig get the BusyBox binary from the image build job's artifact and have no cross compiler.
RIG_BUSYBOX=panelalways ranbuild-busybox.sh, so those jobs could not use the panel BusyBox. Installing the cross compiler in every flow job costs apt time per job and gives a second binary per job. Keeping the multiarch binary as a fallback is what hid flare-edge #1903, #2002 and #1349.What
qemu/lib.sh:qemu_busybox_panel_inputs, one sha256 over the source pin and every committed input underqemu/busybox/(no compiler). WithRIG_BUSYBOX=panelandBUSYBOXset,qemu_get_busyboxtakes that binary only whenBUSYBOX.inputsequals the value for this tree; otherwise it fails closed. The source pin moved here frombuild-busybox.sh.qemu/build-busybox.shwrites<binary>.inputsnext to the binary, also on the up-to-date path, and removes a stale one before a rebuild.qemu/tests/busybox-panel-test.sh: 6 new cases: missing, foreign and matching.inputs, a missing binary, and a config edit and a patch edit changing the inputs.qemu/README.md,qemu/busybox/README.mdupdated.The default stays
RIG_BUSYBOX=multiarch, so no existing run changes.Gate on bfe-mpc-0056 (lane-remote, pass 627)
bash qemu/build-busybox.sh: OK, same binary sha256 6d949435... as #37.bash qemu/tests/busybox-panel-test.sh: all checks passed (6 new cases).QEMU_USER=qemu-arm bash qemu/tests/busybox-panel-help.sh: 282 applets, list and--helpequal to the panel's.RIG_BUSYBOX=panel BUSYBOX=qemu/out/busybox-armv7l-panel bash qemu/mkinitramfs.sh: OK.qemu_get_busybox, SC2012 in the test).8fc3297rewrites both with no behaviour change. CI's exactshellcheck -x ...command is now clean on the workstation (0.10.0, which reports the same two notes on820af4b). After8fc3297on 0056: build OK, busybox-panel-test all checks passed, mkinitramfs with the prebuilt binary OK, and a foreign.inputsis refused (exit 1).The consumer is flare-edge branch rb/w31-rig-busybox-panel (SDK pin to this branch, tools/ci-stage-qemu-busybox.sh in the 5 rig jobs). It was checked end to end against this commit: the stager, the env and mkinitramfs used the prebuilt binary, and the initramfs
/bin/busyboxis 6d949435. Its PR opens after this merges, with the pin on the merge commit.Generated with Claude Code
https://claude.ai/code/session_01KerYPVh72hhNgKi3wS5ijG