summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-05-03 20:12:20 +0200
committerGitHub <noreply@github.com>2023-05-03 20:12:20 +0200
commit5d63c7eb83740efd13a65fe0915d1a9c5c0839fb (patch)
tree0423d8d7469062c371a32afcb772972a1bac0058 /src/core
parentef25552e8b3b63e655f94106570fd5978fb3aa87 (diff)
parent1408912282021d5dfbad4cedc166e5b06685e0b6 (diff)
downloadsystemd-5d63c7eb83740efd13a65fe0915d1a9c5c0839fb.tar.gz
Merge pull request #27450 from poettering/switch-root-modernize
pid1: modernize switch root logic a bit
Diffstat (limited to 'src/core')
-rw-r--r--src/core/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 932ea64e45..af88fe34bb 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1797,7 +1797,7 @@ static int do_reexecute(
broadcast_signal(SIGTERM, false, true, arg_default_timeout_stop_usec);
/* And switch root with MS_MOVE, because we remove the old directory afterwards and detach it. */
- r = switch_root(switch_root_dir, "/mnt", true, MS_MOVE);
+ r = switch_root(switch_root_dir, /* old_root_after= */ NULL, MS_MOVE);
if (r < 0)
log_error_errno(r, "Failed to switch root, trying to continue: %m");
}