feat: add feature to update cachyOS in the background

This commit is contained in:
2026-05-05 08:30:33 +02:00
parent 4a0ae14f8b
commit 3ea6ce58b3
15 changed files with 1190 additions and 0 deletions

View File

@ -0,0 +1,19 @@
[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
After=local-fs.target plymouth-start.service
[Service]
Type=oneshot
ExecStart=/usr/bin/cachyos-updater-shutdown
# Jusqu'à 10 minutes pour installer les mises à jour (kernel, systemd...)
TimeoutStartSec=600
RemainAfterExit=no
StandardOutput=journal
StandardError=journal
SyslogIdentifier=cachyos-updater-shutdown
[Install]
WantedBy=poweroff.target halt.target reboot.target