Files
FWS-ISO/configs/baseline/airootfs/root/.zprofile
T
nocode 680ee39e94 fix(baseline): update recovery boot flow to use X with gtk application
Changed recovery mode (fws.recovery=1) to start X server with the GTK recovery application (fws-recovery-session) instead of directly launching the console assistant. This provides a graphical interface when possible, with a fallback to the console assistant if X fails to start.

Also updated comments to clarify the different recovery mechanisms on the live ISO versus the installed system.
2026-07-07 02:45:47 +02:00

19 lines
883 B
Bash

# Démarrage automatique dans le live FWS uniquement.
# Sur le système installé, /run/archiso n'existe pas, donc rien ne se lance.
# Mode RÉPARATION (entrée de boot « Réparer FWS », paramètre fws.recovery=1) :
# on démarre X + l'application GTK (fws-recovery-session lance openbox puis
# fws-recovery-gui, qui pilote le moteur fws-recovery). Si X échoue à
# démarrer, startx rend la main → repli sur l'assistant console fws-recovery.
# (Sur le SYSTÈME INSTALLÉ, l'équivalent est fws-recovery-boot.service via
# l'entrée GRUB « Réparer FWS » — pas ce fichier.)
if [[ -d /run/archiso && "$(tty)" == "/dev/tty1" ]] \
&& grep -qw 'fws.recovery=1' /proc/cmdline 2>/dev/null; then
startx /usr/local/bin/fws-recovery-session -- vt1
exec fws-recovery
fi
if [[ -d /run/archiso && "$(tty)" == "/dev/tty1" && -z "$DISPLAY" ]]; then
exec startx -- vt1
fi