From 3e085e48a827cdcdb79c257f6a98fb9c7be2ab03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B0=E6=9C=94?= <565183519@qq.com> Date: Sun, 16 Aug 2026 01:31:08 +0800 Subject: [PATCH] fix(guanghu-os): clear GRUB recordfail after readiness --- .../hololake-platform/guanghu-os/scripts/guanghu-master-init.sh | 1 + .../guanghu-os/scripts/test-guanghu-master-init.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/product-source/hololake-platform/guanghu-os/scripts/guanghu-master-init.sh b/product-source/hololake-platform/guanghu-os/scripts/guanghu-master-init.sh index 3fcea3e19..41d89d38f 100644 --- a/product-source/hololake-platform/guanghu-os/scripts/guanghu-master-init.sh +++ b/product-source/hololake-platform/guanghu-os/scripts/guanghu-master-init.sh @@ -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" diff --git a/product-source/hololake-platform/guanghu-os/scripts/test-guanghu-master-init.sh b/product-source/hololake-platform/guanghu-os/scripts/test-guanghu-master-init.sh index d43cdd115..ebf494661 100644 --- a/product-source/hololake-platform/guanghu-os/scripts/test-guanghu-master-init.sh +++ b/product-source/hololake-platform/guanghu-os/scripts/test-guanghu-master-init.sh @@ -13,6 +13,7 @@ grep -Fq "GUANGHU_MASTER_REFUSED: run mode requires PID 1" "$subject" grep -Fq '\"control\":\"GUANGHU_OS_MASTER\"' "$subject" grep -Fq '\"full_linux_userspace\":\"DORMANT\"' "$subject" grep -Fq '/usr/bin/grub-editenv /boot/grub/grubenv set next_entry=' "$subject" +grep -Fq '/usr/bin/grub-editenv /boot/grub/grubenv unset recordfail' "$subject" grep -Fq 'start_root sshd /usr/sbin/sshd -D -e' "$subject" grep -Fq 'mount -o remount,rw /' "$subject" grep -Fq 'start_guanghu repository-bridge' "$subject"