thayer, 1 year ago (edited 8 months ago) Thanks, yeah I’ve found a few articles already on running scripts at shutdown…something like this should do it (using Tony Walker’s update script), though I’ve not tested it yet: <span style="color:#323232;">/etc/systemd/system/silverblue-update-at-shutdown.service: </span><span style="color:#323232;"> </span><span style="color:#323232;">[Unit] </span><span style="color:#323232;">Description=Fedora Silverblue Update at Shutdown </span><span style="color:#323232;">ConditionPathExists=/run/ostree-booted </span><span style="color:#323232;">DefaultDependencies=no </span><span style="color:#323232;">Before=shutdown.target </span><span style="color:#323232;"> </span><span style="color:#323232;">[Service] </span><span style="color:#323232;">Type=oneshot </span><span style="color:#323232;">ExecStart=/usr/local/bin/silverblue-update </span><span style="color:#323232;">TimeoutStartSec=0 </span><span style="color:#323232;"> </span><span style="color:#323232;">[Install] </span><span style="color:#323232;">WantedBy=shutdown.target </span>
Thanks, yeah I’ve found a few articles already on running scripts at shutdown…something like this should do it (using Tony Walker’s update script), though I’ve not tested it yet:
<span style="color:#323232;">/etc/systemd/system/silverblue-update-at-shutdown.service: </span><span style="color:#323232;"> </span><span style="color:#323232;">[Unit] </span><span style="color:#323232;">Description=Fedora Silverblue Update at Shutdown </span><span style="color:#323232;">ConditionPathExists=/run/ostree-booted </span><span style="color:#323232;">DefaultDependencies=no </span><span style="color:#323232;">Before=shutdown.target </span><span style="color:#323232;"> </span><span style="color:#323232;">[Service] </span><span style="color:#323232;">Type=oneshot </span><span style="color:#323232;">ExecStart=/usr/local/bin/silverblue-update </span><span style="color:#323232;">TimeoutStartSec=0 </span><span style="color:#323232;"> </span><span style="color:#323232;">[Install] </span><span style="color:#323232;">WantedBy=shutdown.target </span>