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.
This commit is contained in:
@@ -2,9 +2,14 @@
|
||||
# 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) :
|
||||
# pas de X, on lance directement l'assistant de réparation en console.
|
||||
# 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user