From 3686c619c00b04e4104565532bbad2e76c8fab2c Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 27 May 2024 19:00:35 +0200 Subject: make soft-reboot functionality mandatory This makes sure /run is preserved, and allows us to implement some more functionality later on. --- systemd/pacman-offline-reboot.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'systemd/pacman-offline-reboot.service') diff --git a/systemd/pacman-offline-reboot.service b/systemd/pacman-offline-reboot.service index 26dca94..c131d70 100644 --- a/systemd/pacman-offline-reboot.service +++ b/systemd/pacman-offline-reboot.service @@ -6,9 +6,9 @@ # (at your option) any later version. [Unit] -Description=Reboot for pacman offline system-update +Description=Soft-reboot for pacman offline system-update ConditionPathExists=/system-update [Service] Type=oneshot -ExecStart=/bin/sh -c "if systemctl --dry-run soft-reboot 2>/dev/null; then systemctl soft-reboot; else systemctl reboot; fi" +ExecStart=/usr/bin/systemctl soft-reboot -- cgit v1.2.3-70-g09d2