Second half of the SDK side of flare-edge#2210 part 2, stacked on #32 (merged).
ui-drive.sh --init-chain DIR lays the panel's init scripts over the rootfs (ROOTFS_OVERLAY) and boots with warden.initchain. It refuses a missing directory, or one without etc/init.d/S99lvgl, before anything is built.
qmp.py verb assert_ui_chain [ACCOUNT] reads the guest over the control channel (@procs, @cat). It fails unless exactly one warden-ui and one warden-ui-run loop run, the UI's real, effective, saved and filesystem uids all equal the account's (never 0), /run/warden/ui-safe-mode is absent, and /tmp/warden-ui.log holds no exit or refusal line from warden-ui-run.
qemu/tests/scripts/init-chain-ui.txt: sleep 90, then the assert (about T+120 s after boot).
README: the --init-chain option.
Tests
Rebuild f46a3519 merged in; run on bfe-mpc-0056 via lane-remote.
python3 qemu/tests/test_qmp_drive.py Ran 83 tests ... OK (UiChainVerb: 12 new, among them the #1903 case)
python3 qemu/tests/imgtools.py selftest ok
bash qemu/tests/rootfs-overlay.sh [PASS] ui-drive.sh: a chain directory with S99lvgl passes its checks
rootfs-overlay: all scenarios passed
bash qemu/tests/init-chain-test.sh init-chain: 19 checks / all checks passed
bash qemu/tests/payload-dir.sh payload-dir: all scenarios passed
bash qemu/tests/seed-dir.sh ALL SEED_DIR TESTS PASSED
Mutants (earlier pass): 6 of 6 caught. Local shellcheck over ui-drive.sh and rootfs-overlay.sh is clean.
0056 has no qemu-system-arm, so no VM was booted here. The first real boot is the flare-edge job "QEMU UI shipped init chain", which follows once this merges and the vendor/warden-sdk pin moves.
Second half of the SDK side of flare-edge#2210 part 2, stacked on #32 (merged).
- `ui-drive.sh --init-chain DIR` lays the panel's init scripts over the rootfs (ROOTFS_OVERLAY) and boots with `warden.initchain`. It refuses a missing directory, or one without etc/init.d/S99lvgl, before anything is built.
- `qmp.py` verb `assert_ui_chain [ACCOUNT]` reads the guest over the control channel (@procs, @cat). It fails unless exactly one warden-ui and one warden-ui-run loop run, the UI's real, effective, saved and filesystem uids all equal the account's (never 0), /run/warden/ui-safe-mode is absent, and /tmp/warden-ui.log holds no exit or refusal line from warden-ui-run.
- `qemu/tests/scripts/init-chain-ui.txt`: sleep 90, then the assert (about T+120 s after boot).
- README: the --init-chain option.
## Tests
Rebuild f46a3519 merged in; run on bfe-mpc-0056 via lane-remote.
```
python3 qemu/tests/test_qmp_drive.py Ran 83 tests ... OK (UiChainVerb: 12 new, among them the #1903 case)
python3 qemu/tests/imgtools.py selftest ok
bash qemu/tests/rootfs-overlay.sh [PASS] ui-drive.sh: a chain directory with S99lvgl passes its checks
rootfs-overlay: all scenarios passed
bash qemu/tests/init-chain-test.sh init-chain: 19 checks / all checks passed
bash qemu/tests/payload-dir.sh payload-dir: all scenarios passed
bash qemu/tests/seed-dir.sh ALL SEED_DIR TESTS PASSED
```
Mutants (earlier pass): 6 of 6 caught. Local shellcheck over ui-drive.sh and rootfs-overlay.sh is clean.
0056 has no qemu-system-arm, so no VM was booted here. The first real boot is the flare-edge job "QEMU UI shipped init chain", which follows once this merges and the vendor/warden-sdk pin moves.
Refs flare-edge#2210
Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01KerYPVh72hhNgKi3wS5ijG
ui-drive.sh --init-chain DIR lays the panel's scripts over the rootfs
(ROOTFS_OVERLAY) and boots with warden.initchain; it refuses a missing
directory or one without etc/init.d/S99lvgl before anything is built.
qmp.py assert_ui_chain [ACCOUNT] reads the guest over the control channel
(@procs, @cat) and fails unless exactly one warden-ui and one warden-ui-run
loop run, the UI's real, effective, saved and filesystem uids are all the
account's (never 0), the safe-mode flag is absent and /tmp/warden-ui.log
holds no exit or refusal of warden-ui-run. tests/scripts/init-chain-ui.txt
runs it at about T+120 s.
Tests: UiChainVerb in test_qmp_drive.py (12 cases, among them the #1903
case: no UI, safe mode, three exits); 6 of 6 mutants caught.
rootfs-overlay.sh gains the three ui-drive.sh --init-chain checks.
Refs flare-edge#2210
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KerYPVh72hhNgKi3wS5ijG
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.
Second half of the SDK side of flare-edge#2210 part 2, stacked on #32 (merged).
ui-drive.sh --init-chain DIRlays the panel's init scripts over the rootfs (ROOTFS_OVERLAY) and boots withwarden.initchain. It refuses a missing directory, or one without etc/init.d/S99lvgl, before anything is built.qmp.pyverbassert_ui_chain [ACCOUNT]reads the guest over the control channel (@procs, @cat). It fails unless exactly one warden-ui and one warden-ui-run loop run, the UI's real, effective, saved and filesystem uids all equal the account's (never 0), /run/warden/ui-safe-mode is absent, and /tmp/warden-ui.log holds no exit or refusal line from warden-ui-run.qemu/tests/scripts/init-chain-ui.txt: sleep 90, then the assert (about T+120 s after boot).Tests
Rebuild
f46a3519merged in; run on bfe-mpc-0056 via lane-remote.Mutants (earlier pass): 6 of 6 caught. Local shellcheck over ui-drive.sh and rootfs-overlay.sh is clean.
0056 has no qemu-system-arm, so no VM was booted here. The first real boot is the flare-edge job "QEMU UI shipped init chain", which follows once this merges and the vendor/warden-sdk pin moves.
Refs flare-edge#2210
Generated with Claude Code
https://claude.ai/code/session_01KerYPVh72hhNgKi3wS5ijG