From: Yu Watanabe Date: Wed, 22 May 2024 14:53:13 +0000 (+0900) Subject: Revert "units: do not soft-reboot before soft-reboot.target reached" X-Git-Tag: v256-rc3~7^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=03a41c41eedf6e45c312b3fcc6f5822e0aa43871;p=thirdparty%2Fsystemd.git Revert "units: do not soft-reboot before soft-reboot.target reached" This reverts commit 4263d7617f0e6ea741e227db223ac6085479165f. Still I think this is the way to go. But the change was merged after -rc2, and still discussion is continued. So, at least now let's revert it, and do that after v256-final is released if approved. --- diff --git a/units/soft-reboot.target b/units/soft-reboot.target index 4bca192454d..6a6c772875e 100644 --- a/units/soft-reboot.target +++ b/units/soft-reboot.target @@ -11,10 +11,8 @@ Description=Reboot System Userspace Documentation=man:systemd.special(7) DefaultDependencies=no -Requires=shutdown.target umount.target final.target -After=shutdown.target umount.target final.target Requires=systemd-soft-reboot.service -Before=systemd-soft-reboot.service +After=systemd-soft-reboot.service AllowIsolate=yes JobTimeoutSec=30min JobTimeoutAction=soft-reboot-force diff --git a/units/systemd-soft-reboot.service b/units/systemd-soft-reboot.service index da9f463821f..35ba3a9fc41 100644 --- a/units/systemd-soft-reboot.service +++ b/units/systemd-soft-reboot.service @@ -11,5 +11,6 @@ Description=Reboot System Userspace Documentation=man:systemd-soft-reboot.service(8) DefaultDependencies=no -Requires=soft-reboot.target +Requires=shutdown.target umount.target final.target +After=shutdown.target umount.target final.target SuccessAction=soft-reboot-force