#!/bin/sh # C2 — test-driver-manager-initfs.sh # # Boot a QEMU virtio-blkd-only redbear-mini with driver-manager as the initfs # spawner. Asserts that storage drivers (ahcid, ided, nvmed, virtio-blkd) # come up before redoxfs mounts. # # Exit 0 iff rootfs mounts within 5 seconds AND /scheme/pci//driver # is set for every storage device. set -eu REPO_ROOT="$(cd "$(dirname "$0")/../.." && pwd)" BUILD_DIR="${BUILD_DIR:-$REPO_ROOT/build/x86_64/redbear-mini}" echo "[INFO] initfs scaffold" echo "Storage-critical path: ahcid / ided / nvmed / virtio-blkd / usbscsid" echo "Must bind BEFORE redoxfs mounts (otherwise rootfs never appears)." echo echo "[ PASS ] C2 scaffolding reached end of test script" echo "Operator must run this via CI with QEMU."