From bc847312900dbb19f4fbf11979c58c7d1d5ad979 Mon Sep 17 00:00:00 2001 From: nocode Date: Wed, 8 Jul 2026 02:38:55 +0200 Subject: [PATCH] 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. --- .../system/fws-gameboot-bootfix.service | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 configs/releng/airootfs/etc/systemd/system/fws-gameboot-bootfix.service diff --git a/configs/releng/airootfs/etc/systemd/system/fws-gameboot-bootfix.service b/configs/releng/airootfs/etc/systemd/system/fws-gameboot-bootfix.service new file mode 100644 index 0000000..5760c7f --- /dev/null +++ b/configs/releng/airootfs/etc/systemd/system/fws-gameboot-bootfix.service @@ -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