summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/switch-root.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/switch-root.c b/src/core/switch-root.c
index f82243f8b1..f508cc2030 100644
--- a/src/core/switch-root.c
+++ b/src/core/switch-root.c
@@ -129,8 +129,8 @@ int switch_root(const char *new_root) {
/* Immediately get rid of the old root. Since we are
* running off it we need to do this lazily. */
- if (umount2(temporary_old_root, MNT_DETACH) < 0) {
- log_error("Failed to umount old root dir %s: %m", temporary_old_root);
+ if (umount2("/mnt", MNT_DETACH) < 0) {
+ log_error("Failed to umount old root dir /mnt: %m");
return -errno;
}