feat: add auto secure boot to new kernel update

This commit is contained in:
2026-07-28 13:16:02 +02:00
parent 61e0e1e840
commit 937fced108
9 changed files with 436 additions and 9 deletions

View File

@ -1,19 +1,20 @@
[Unit]
Description=CachyOS Updater - Installation des mises à jour reportées avant extinction
DefaultDependencies=no
Before=poweroff.target halt.target reboot.target shutdown.target
# Après Plymouth pour pouvoir lui envoyer des messages
# L'ordre est inversé à l'arrêt : le service s'arrête avant les montages.
After=local-fs.target plymouth-start.service
# Maintient explicitement l'ESP jusqu'à la fin de ExecStop.
RequiresMountsFor=/boot/efi
[Service]
Type=oneshot
ExecStart=/usr/bin/cachyos-updater-shutdown
ExecStart=/usr/bin/true
ExecStop=/usr/bin/cachyos-updater-shutdown
RemainAfterExit=yes
# Jusqu'à 10 minutes pour installer les mises à jour (kernel, systemd...)
TimeoutStartSec=600
RemainAfterExit=no
TimeoutStopSec=600
StandardOutput=journal
StandardError=journal
SyslogIdentifier=cachyos-updater-shutdown
[Install]
WantedBy=poweroff.target halt.target reboot.target
WantedBy=multi-user.target