From d677d4df80e0ea1c66c691f50867fedd63c6770a Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Thu, 16 Oct 2014 19:12:55 -0500 Subject: systemd: continue switch-root even if umount fails Leaving the old root around seems better than aborting the switch. --- src/core/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/main.c') diff --git a/src/core/main.c b/src/core/main.c index 44373cc7ef..0388f46c36 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1857,7 +1857,7 @@ finish: /* 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); if (r < 0) - log_error("Failed to switch root, ignoring: %s", strerror(-r)); + log_error("Failed to switch root, trying to continue: %s", strerror(-r)); } args_size = MAX(6, argc+1); -- cgit v1.2.3-54-g00ecf