feat: add auto secure boot to new kernel update
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user