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:
@@ -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
|
||||
Reference in New Issue
Block a user