Create QEMU daemon runtime directory

This commit is contained in:
Noah
2026-09-11 02:35:21 -06:00
parent 2b6e8a2098
commit bf39a74337
+3
View File
@@ -84,6 +84,9 @@ export WARDEN_HPMCU=0
# post-apply "reboot" surfaces as a clean flared error; the scenario harness # post-apply "reboot" surfaces as a clean flared error; the scenario harness
# performs the actual reboot into the applied slot. # performs the actual reboot into the applied slot.
export WARDEN_HARD_RESET=0 export WARDEN_HARD_RESET=0
# Production init scripts create this volatile socket directory before their
# daemons start. The compact QEMU rootfs must provide the same contract.
mkdir -p /run/warden
# OTA apply is opt-in per boot (run.sh --allow-apply): writing rootfs_b is # OTA apply is opt-in per boot (run.sh --allow-apply): writing rootfs_b is
# safe inside disk.img but must never be the default posture. # safe inside disk.img but must never be the default posture.
if grep -qw warden.fwapply /proc/cmdline; then if grep -qw warden.fwapply /proc/cmdline; then