Add post update service

This commit is contained in:
Sōon Yoru 2025-01-03 06:09:46 -03:00
parent 8430971fa9
commit bd9b65a1ba
Signed by: yoru
GPG key ID: B63039394990CD72
2 changed files with 19 additions and 0 deletions

View file

@ -41,6 +41,11 @@ uninstall() {
fi
}
# Run the original SteamOS post upgrade script
/usr/lib/steamos/steamos-post-update
# If this script fails, I don't want it to run again
rm -fv /var/lib/steamos-atomupd/system-updated
#cp -fv 10-monitor.conf /etc/X11/xorg.conf.d/
cp -fv 10-ptrace.conf /etc/sysctl.d/
cp -fv mglru.conf /etc/tmpfiles.d/

View file

@ -0,0 +1,14 @@
[Unit]
Description=Run tasks on the first boot after an OS update
After=local-fs.target
Before=sddm.service
ConditionPathExists=/var/lib/steamos-atomupd/system-updated
[Service]
Type=oneshot
RemainAfterExit=no
ExecStart=/home/deck/deck_boot/post_upgrade.sh
[Install]
WantedBy=local-fs.target