Files
FWS-ISO/configs/baseline/airootfs/root/.zprofile
T
nocode 7831b537d7 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.
2026-07-04 12:55:25 +02:00

14 lines
536 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) :
# 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