fix(pncc): provision resident runtime ownership

This commit is contained in:
冰朔 2026-08-16 02:27:05 +08:00
commit c5668d33bc
2 changed files with 2 additions and 0 deletions

View file

@ -104,6 +104,7 @@ verify_identity() {
prepare_runtime() { prepare_runtime() {
mount -o remount,rw / mount -o remount,rw /
mkdir -p "$STATE_ROOT" "$RECEIPT_ROOT" /run/sshd /run/systemd/resolve mkdir -p "$STATE_ROOT" "$RECEIPT_ROOT" /run/sshd /run/systemd/resolve
install -d -o guanghu -g guanghu -m 0700 "$PNCC_STATE_ROOT"
chmod 0700 "$STATE_ROOT" "$RECEIPT_ROOT" chmod 0700 "$STATE_ROOT" "$RECEIPT_ROOT"
chmod 1777 /tmp chmod 1777 /tmp
mountpoint -q /proc || mount -t proc proc /proc mountpoint -q /proc || mount -t proc proc /proc

View file

@ -20,6 +20,7 @@ grep -Fq 'start_guanghu repository-bridge' "$subject"
grep -Fq 'start_guanghu app-hub' "$subject" grep -Fq 'start_guanghu app-hub' "$subject"
grep -Fq 'start_guanghu navigation-bridge' "$subject" grep -Fq 'start_guanghu navigation-bridge' "$subject"
grep -Fq 'start_guanghu pncc-runtime' "$subject" grep -Fq 'start_guanghu pncc-runtime' "$subject"
grep -Fq 'install -d -o guanghu -g guanghu -m 0700 "$PNCC_STATE_ROOT"' "$subject"
grep -Fq '[[ ",$expected," == *",$code,"* ]]' "$subject" grep -Fq '[[ ",$expected," == *",$code,"* ]]' "$subject"
grep -Fq 'wait_http code-projection http://127.0.0.1:8088/code/ 200,303' "$subject" grep -Fq 'wait_http code-projection http://127.0.0.1:8088/code/ 200,303' "$subject"
grep -Fq 'wait_http navigation-bridge http://127.0.0.1:3922/v1/anchor 200' "$subject" grep -Fq 'wait_http navigation-bridge http://127.0.0.1:3922/v1/anchor 200' "$subject"