From 5ae89ef34774a777c5af7af48b1ad431d10a425e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 28 Apr 2023 16:56:39 +0200 Subject: core/systemctl: when switching root default to /sysroot/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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). --- units/initrd-switch-root.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'units') 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 -- cgit v1.2.1