bc84731290
Add a new systemd service that reasserts BootOrder=FWS and the Windows boot marker on gameboot systems. This service runs only on installed UEFI systems (not on live media) and is designed to be best-effort without delaying boot. It handles unavailable efivars gracefully by not failing the boot process.
20 lines
610 B
Desktop File
20 lines
610 B
Desktop File
[Unit]
|
|
Description=FWS — réasserte BootOrder=FWS et le marqueur de retour Windows (gameboot)
|
|
Documentation=file:///usr/share/doc/fws/hibernate-swap-dualboot.md
|
|
# Jamais sur le live, uniquement sur un système installé UEFI.
|
|
ConditionPathExists=!/run/archiso
|
|
ConditionPathExists=/sys/firmware/efi
|
|
After=local-fs.target
|
|
# Ne pas retarder le boot : purement best-effort.
|
|
DefaultDependencies=no
|
|
Before=multi-user.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/local/bin/fws-gameboot-bootfix
|
|
# Ne jamais faire échouer le boot si efivars indisponible.
|
|
SuccessExitStatus=0 1
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|