diff options
author | Christian Hesse <mail@eworm.de> | 2024-01-30 15:39:36 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-01-30 15:45:55 +0100 |
commit | d342ca8e078a098af40362e15c2a1becb239137e (patch) | |
tree | f60f2c35dc659b447c435c1ccd45787b7c4c47c5 /systemd | |
parent | 4bc8477d2eac29086ece72fd6e7899d840c25b2e (diff) | |
download | pacman-offline-d342ca8e078a098af40362e15c2a1becb239137e.tar.gz pacman-offline-d342ca8e078a098af40362e15c2a1becb239137e.tar.zst |
force soft-reboot on regular reboot
Diffstat (limited to 'systemd')
-rwxr-xr-x | systemd/pacman-offline | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/systemd/pacman-offline b/systemd/pacman-offline index d26038a..9471bfc 100755 --- a/systemd/pacman-offline +++ b/systemd/pacman-offline @@ -19,8 +19,9 @@ function finish { rm -f /run/pacman.conf; } trap finish EXIT sed '/^Include *= *\/etc\/pacman\.d\/offline\.conf$/s|^|#|' < /etc/pacman.conf > /run/pacman.conf -# remove triggering symlink +# remove triggering symlink and (soft-)reboot override rm -f /system-update +rm -f /run/systemd/system/systemd-reboot.service # install updates if [ "$(pacman --sync --print --needed archlinux-keyring | wc -l)" -gt 0 ]; then |