diff options
Diffstat (limited to 'generic/lib/systemd/systemd-rc-once')
-rw-r--r-- | generic/lib/systemd/systemd-rc-once | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/lib/systemd/systemd-rc-once b/generic/lib/systemd/systemd-rc-once index 5ecc5e5a3..42a9e04c0 100644 --- a/generic/lib/systemd/systemd-rc-once +++ b/generic/lib/systemd/systemd-rc-once @@ -6,7 +6,7 @@ start() { mount_root_rw || exit 1 if run_rc_once; then - systemctl disable --quiet rc-once.target + rm -f /system-update fi systemctl daemon-reexec sleep 1 @@ -17,7 +17,7 @@ umount() { if ! mount_root_restore; then # remounting rw/ro during the second boot will flush anything # left in the filesystem journal - systemctl enable --quiet rc-once.target + ln -sf /etc/rc.once.d /system-update systemctl reboot else systemctl default |