From a8479069799046c97ef918b27d7428d6754b3fdc Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 11 Jul 2023 13:08:46 +0200 Subject: support systemd without soft-reboot --- systemd/pacman-offline-reboot.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'systemd/pacman-offline-reboot.service') diff --git a/systemd/pacman-offline-reboot.service b/systemd/pacman-offline-reboot.service index 7026061..f7f3612 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 soft-reboot +ExecStart=/bin/sh -c "if systemctl --dry-run soft-reboot 2>/dev/null; then systemctl soft-reboot; else systemctl reboot; fi" -- cgit v1.2.3-54-g00ecf