feat(baseline): add recovery mode boot option to zprofile
Add support for recovery mode that can be triggered via the fws.recovery=1 kernel parameter. When recovery mode is enabled, the system launches the fws-recovery console assistant directly instead of starting the graphical environment. This allows users to access repair tools without needing to start X server, improving system recovery capabilities.
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
# Démarrage automatique de Xorg uniquement dans le live FWS.
|
||||
# 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) :
|
||||
# pas de X, on lance directement l'assistant de réparation en console.
|
||||
if [[ -d /run/archiso && "$(tty)" == "/dev/tty1" ]] \
|
||||
&& grep -qw 'fws.recovery=1' /proc/cmdline 2>/dev/null; then
|
||||
exec fws-recovery
|
||||
fi
|
||||
|
||||
if [[ -d /run/archiso && "$(tty)" == "/dev/tty1" && -z "$DISPLAY" ]]; then
|
||||
exec startx -- vt1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user