summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-07-10 09:41:41 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-07-10 09:41:41 +0200
commit84a906395b3672f8ad6ac49d5b3f04f9f90bac66 (patch)
tree23400e52d301e5e47f85a547ba06d56376cb123c
parentf37c16bd02b87e0a17957a07cb33df1dc0d04e81 (diff)
downloadpacman-offline-84a906395b3672f8ad6ac49d5b3f04f9f90bac66.tar.gz
pacman-offline-84a906395b3672f8ad6ac49d5b3f04f9f90bac66.tar.zst
do a soft-reboot in first stepsystemd-254
-rwxr-xr-xbin/pacman-offline2
-rw-r--r--systemd/pacman-offline-reboot.service2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/pacman-offline b/bin/pacman-offline
index a8fddf5..57024f0 100755
--- a/bin/pacman-offline
+++ b/bin/pacman-offline
@@ -78,7 +78,7 @@ ln -sf /var/cache/pacman/pkg /system-update
# reboot if requested
if [ ${REBOOT} -eq 1 ]; then
- systemctl reboot
+ systemctl soft-reboot
# start timer if requested
elif [ ${TIMER} -eq 1 ]; then
systemctl start pacman-offline-reboot.timer
diff --git a/systemd/pacman-offline-reboot.service b/systemd/pacman-offline-reboot.service
index bb7a44f..7026061 100644
--- a/systemd/pacman-offline-reboot.service
+++ b/systemd/pacman-offline-reboot.service
@@ -4,4 +4,4 @@ ConditionPathExists=/system-update
[Service]
Type=oneshot
-ExecStart=/usr/bin/systemctl reboot
+ExecStart=/usr/bin/systemctl soft-reboot