summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-01-30 15:39:36 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-01-30 15:45:55 +0100
commitd342ca8e078a098af40362e15c2a1becb239137e (patch)
treef60f2c35dc659b447c435c1ccd45787b7c4c47c5 /bin
parent4bc8477d2eac29086ece72fd6e7899d840c25b2e (diff)
downloadpacman-offline-d342ca8e078a098af40362e15c2a1becb239137e.tar.gz
pacman-offline-d342ca8e078a098af40362e15c2a1becb239137e.tar.zst
force soft-reboot on regular reboot
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pacman-offline6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/pacman-offline b/bin/pacman-offline
index 80f0759..cbf5ff5 100755
--- a/bin/pacman-offline
+++ b/bin/pacman-offline
@@ -83,6 +83,12 @@ pacman --config /run/pacman.conf --sync --noconfirm --sysupgrade --downloadonly
# enable system update
ln -sf /var/cache/pacman/pkg /system-update
+# force a soft-reboot on reboot
+if [ -e /usr/lib/systemd/system/systemd-soft-reboot.service ]; then
+ ln -sf ../../../usr/lib/systemd/system/systemd-soft-reboot.service /run/systemd/system/systemd-reboot.service
+ systemctl daemon-reload
+fi
+
# reboot if requested
if [ ${REBOOT} -eq 1 ]; then
if systemctl --dry-run soft-reboot 2>/dev/null; then