Fix early-boot hostname application

This commit is contained in:
v3d 2026-07-01 14:24:12 +02:00
parent b5e19f08f6
commit 0f20889948
5 changed files with 130 additions and 4 deletions

View file

@ -62,6 +62,8 @@ boot_config_contract() {
grep -q 'pivilion_boot_config_path' "$ROOT/usr/local/lib/pivilion/config-sync.sh" &&
grep -q 'pivilion.conf.last-good' "$ROOT/usr/local/lib/pivilion/config-sync.sh" &&
grep -q 'derive_psk' "$ROOT/usr/local/lib/pivilion/config-sync.sh" &&
grep -q 'pivilion_apply_hostname' "$ROOT/usr/local/lib/pivilion/config-sync.sh" &&
! grep -R -q --include='*.sh' --include='*.service' 'hostnamectl' "$ROOT/install.sh" "$ROOT/usr" "$ROOT/etc" &&
grep -q 'Before=.*NetworkManager' "$ROOT/etc/systemd/system/pivilion-config.service" &&
grep -q 'config-sync.sh set PIVILION_MODE' "$ROOT/usr/local/bin/hotspot" &&
grep -q 'config-sync.sh set-wifi' "$ROOT/usr/local/bin/pikey"
@ -83,6 +85,7 @@ shellcheck_scripts() {
}
run "configuration and state fixtures" "$ROOT/tests/test-common.sh"
run "early-boot hostname application" "$ROOT/tests/test-hostname.sh"
run "shell syntax" shell_syntax
run "PHP syntax" php_syntax
run "systemd unit syntax" systemd_syntax