]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - units/initrd-switch-root.service.in
Merge pull request #11357 from GiacintoCifelli/dbus_labels
[thirdparty/systemd.git] / units / initrd-switch-root.service.in
index b89f2348c785915da8f1796e75701e69474e4531..6ce468e872c83dfadd595f419c0d2daf3c6fc9aa 100644 (file)
@@ -1,3 +1,5 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
 #  This file is part of systemd.
 #
 #  systemd is free software; you can redistribute it and/or modify it
@@ -15,12 +17,4 @@ AllowIsolate=yes
 
 [Service]
 Type=oneshot
-# we have to use "--force" here, otherwise systemd would umount /run
-ExecStart=@rootbindir@/systemctl --no-block --force switch-root /sysroot
-
-# Just before switching to the new rootfs, systemd might send us a TERM signal
-# depending on how fast we are to execute the main command and exit. If we get
-# the SIGTERM signal that simply means that we succeed but haven't got enough
-# time to exit properly. Since systemd considers SIGTERM as a failure for
-# short-running process (aka Type=oneshot), instruct it to ignore this case.
-SuccessExitStatus=SIGTERM
+ExecStart=@rootbindir@/systemctl --no-block switch-root /sysroot