feat(systemd): add fws-gameboot-bootfix service unit

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.
This commit is contained in:
2026-07-08 02:38:55 +02:00
parent e5b36d6c07
commit bc84731290
@@ -0,0 +1,19 @@
[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