fix(guanghu-os): activate loopback in cross-root fixture

This commit is contained in:
冰朔 2026-08-16 00:42:52 +08:00
commit 62d1bed778
2 changed files with 3 additions and 1 deletions

View file

@ -35,7 +35,7 @@ mkdir -p "${staging}/bin" "${staging}/sbin" "${staging}/usr/lib/guanghu" \
"${staging}/usr/share/guanghu/repository-service-equivalence" \
"$(dirname "${output}")"
install -m 0755 /bin/busybox "${staging}/bin/busybox"
for applet in sh sleep cat grep tr stat mkdir mv chmod readlink kill sync poweroff sed id httpd wget rm; do
for applet in sh sleep cat grep tr stat mkdir mv chmod readlink kill sync poweroff sed id httpd wget rm ip; do
ln -s busybox "${staging}/bin/${applet}"
done
install -m 0755 "${supervisor}" "${staging}/usr/lib/guanghu/guanghu-root-supervisor"
@ -64,6 +64,7 @@ kill -0 "${supervisor_pid}"
grep -Fq '"stage":"ROOT_SUPERVISOR_ACTIVE"' /run/guanghu/root-supervisor/state.json
echo "GUANGHU_CROSS_ROOT_PERSISTENCE_VERIFIED pid=${supervisor_pid}"
if [ -x /usr/lib/guanghu/guanghu-repository-bridge-lifecycle ]; then
ip link set lo up
/usr/lib/guanghu/guanghu-repository-bridge-lifecycle run REQ-QEMU-CROSS-ROOT-001
grep -Fq '"result":"PASS_100"' /guanghu/receipts/repository-bridge-lifecycle/REQ-QEMU-CROSS-ROOT-001.json
grep -Fq '"final_state":"DORMANT"' /guanghu/receipts/repository-bridge-lifecycle/REQ-QEMU-CROSS-ROOT-001.json

View file

@ -11,6 +11,7 @@ sh -n "${controller}"
grep -Fq 'httpd -f -p 127.0.0.1:39301' "${backend}"
grep -Fq 'repository-main-readback' "${backend}"
grep -Fq 'service reclaim failed' "${backend}"
grep -Fq 'ip link set lo up' "${builder}"
grep -Fq 'GUANGHU_CROSS_ROOT_REPOSITORY_SERVICE_EQUIVALENCE_VERIFIED' "${builder}"
grep -Fq 'REQ-QEMU-CROSS-ROOT-001' "${builder}"
grep -Fq 'final_state":"DORMANT' "${builder}"