summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-04-28 16:56:39 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2023-04-28 23:26:20 +0100
commit5ae89ef34774a777c5af7af48b1ad431d10a425e (patch)
tree54c2755ddf182ea784e38633b2cc5340a84f1bde /units
parent77b7026668cd376744a99881777dce8c2f5da835 (diff)
downloadsystemd-5ae89ef34774a777c5af7af48b1ad431d10a425e.tar.gz
core/systemctl: when switching root default to /sysroot/
We hardcode the path the initrd uses to prepare the final mount point at so many places, let's also imply it in "systemctl switch-root" if not specified. This adds the fallback both to systemctl and to PID 1 (this is because both to — different – checks on the path).
Diffstat (limited to 'units')
-rw-r--r--units/initrd-switch-root.service2
1 files changed, 1 insertions, 1 deletions
diff --git a/units/initrd-switch-root.service b/units/initrd-switch-root.service
index b19b7bbc21..f81b47871e 100644
--- a/units/initrd-switch-root.service
+++ b/units/initrd-switch-root.service
@@ -20,4 +20,4 @@ OnFailureJobMode=replace-irreversibly
[Service]
Type=oneshot
-ExecStart=systemctl --no-block switch-root /sysroot
+ExecStart=systemctl --no-block switch-root