diff --git a/product-source/hololake-platform/guanghu-os/scripts/build-guanghu-cross-root-fixture.sh b/product-source/hololake-platform/guanghu-os/scripts/build-guanghu-cross-root-fixture.sh index df03cd343..24814bfae 100755 --- a/product-source/hololake-platform/guanghu-os/scripts/build-guanghu-cross-root-fixture.sh +++ b/product-source/hololake-platform/guanghu-os/scripts/build-guanghu-cross-root-fixture.sh @@ -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 ip timeout; do +for applet in sh sleep cat grep tr stat mkdir mv chmod readlink kill sync poweroff sed id httpd wget rm ip timeout mount; do ln -s busybox "${staging}/bin/${applet}" done install -m 0755 "${supervisor}" "${staging}/usr/lib/guanghu/guanghu-root-supervisor" @@ -65,6 +65,7 @@ grep -Fq '"stage":"ROOT_SUPERVISOR_ACTIVE"' /run/guanghu/root-supervisor/state.j echo "GUANGHU_CROSS_ROOT_PERSISTENCE_VERIFIED pid=${supervisor_pid}" if [ -x /usr/lib/guanghu/guanghu-repository-bridge-lifecycle ]; then ip link set lo up + mount -t tmpfs -o mode=0700,size=1m tmpfs /guanghu/receipts /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 diff --git a/product-source/hololake-platform/guanghu-os/scripts/test-cross-root-repository-service-equivalence.sh b/product-source/hololake-platform/guanghu-os/scripts/test-cross-root-repository-service-equivalence.sh index 66991003d..db98bee09 100644 --- a/product-source/hololake-platform/guanghu-os/scripts/test-cross-root-repository-service-equivalence.sh +++ b/product-source/hololake-platform/guanghu-os/scripts/test-cross-root-repository-service-equivalence.sh @@ -16,6 +16,7 @@ if grep -Fq 'wget -q -T' "${backend}" "${builder}"; then exit 1 fi grep -Fq 'ip link set lo up' "${builder}" +grep -Fq 'mount -t tmpfs -o mode=0700,size=1m tmpfs /guanghu/receipts' "${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}"