fix(guanghu-os): clear GRUB recordfail after readiness

This commit is contained in:
冰朔 2026-08-16 01:31:08 +08:00
commit 3e085e48a8
2 changed files with 2 additions and 0 deletions

View file

@ -155,6 +155,7 @@ start_bridge() {
}
runtime_watch() {
/usr/bin/grub-editenv /boot/grub/grubenv unset recordfail
json_state READY PASS_100
cp "$STATE_ROOT/state.json" "$RECEIPT_ROOT/CURRENT-PHYSICAL-STATE.json"
sha256sum "$RECEIPT_ROOT/CURRENT-PHYSICAL-STATE.json" >"$RECEIPT_ROOT/CURRENT-PHYSICAL-STATE.json.sha256"