Some checks are pending
ci / test (push) Waiting to run
Add a branded live welcome window and a Quickshell/QML installer frontend over a narrow, fail-closed JSON bridge (phoebus-installer --gui-bridge) that reuses the same InstallConfig, plan, validation, authorization and staged executor as the TUI/CLI. Add the Phoebus brand system (emblem, wordmark, wallpaper, tokens), suppress DMS first-run dialogs on the live medium, identify the live medium as protected, make the installer shortcut live-only, and fix the installed boot default so systemd-boot never selects the recovery entry. Verified in a disposable graphical VM (welcome/installer journey, duplicate prevention, keyboard navigation, blocked AI prerequisite) plus a real non-interactive install and detached boot (INSTALL-RC=0, NO_SECRET_LEAK, systemd running, 0 failed units, LUKS2, Btrfs, network).
56 lines
1.5 KiB
Bash
56 lines
1.5 KiB
Bash
#!/bin/bash
|
|
# Guest-side, non-interactive install for the graphical Phoebus live ISO.
|
|
#
|
|
# Fetched and run by gui-driver.py inside the live guest. Configuration and
|
|
# secrets are fetched from the host over QEMU user networking so they never
|
|
# appear in the serial transcript. The installer log is scanned for the LUKS
|
|
# passphrase so a leak fails the run.
|
|
#
|
|
# This uses the same deterministic backend as the graphical installer; the GUI
|
|
# is a typed frontend over it, so a CLI install and a GUI install execute the
|
|
# same stages.
|
|
set -uo pipefail
|
|
|
|
SERVE="${SERVE_URL:-http://10.0.2.2:8000}"
|
|
WORK=/tmp/phoebus-guest
|
|
mkdir -p "$WORK"
|
|
cd "$WORK" || exit 1
|
|
|
|
for f in test.conf luks.pw user.pw; do
|
|
if ! curl -fsSL "$SERVE/$f" -o "$f"; then
|
|
echo "===FETCH-FAIL=== ($f)"
|
|
exit 1
|
|
fi
|
|
done
|
|
chmod 600 luks.pw user.pw
|
|
|
|
PHOEBUS=/usr/local/bin/phoebus-installer
|
|
if [ ! -x "$PHOEBUS" ]; then
|
|
echo "===FETCH-FAIL=== (no phoebus-installer)"
|
|
exit 1
|
|
fi
|
|
|
|
"$PHOEBUS" --version || true
|
|
|
|
sudo -n "$PHOEBUS" --config "$WORK/test.conf" --install --yes --no-ai \
|
|
--luks-passphrase-file "$WORK/luks.pw" \
|
|
--user-password-file "$WORK/user.pw"
|
|
RC=$?
|
|
|
|
LEAK=0
|
|
for log in /run/phoebus-installer/install.log /tmp/phoebus-installer/install.log; do
|
|
if [ -f "$log" ] && grep -F -q "$(cat "$WORK/luks.pw")" "$log"; then
|
|
LEAK=1
|
|
fi
|
|
done
|
|
if [ "$LEAK" = 1 ]; then
|
|
echo "===SECRET_LEAK==="
|
|
RC=99
|
|
else
|
|
echo "===NO_SECRET_LEAK==="
|
|
fi
|
|
|
|
echo "===INSTALL-RC=$RC==="
|
|
sync
|
|
sudo -n poweroff -f || poweroff -f
|
|
echo "===POWEROFF==="
|