summaryrefslogtreecommitdiffstats
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-29 00:26:20 +0200
commit5ae89ef34774a777c5af7af48b1ad431d10a425e (patch)
tree54c2755ddf182ea784e38633b2cc5340a84f1bde /units
parentlibsystemd: Add missing memory pressure functions to public symbols (diff)
downloadsystemd-5ae89ef34774a777c5af7af48b1ad431d10a425e.tar.xz
systemd-5ae89ef34774a777c5af7af48b1ad431d10a425e.zip
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