From 52f96c91f0c8fb23dd9eb051c44dc98bcc21f671 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 26 Jul 2013 11:03:26 +0200 Subject: [PATCH] mount_root: umount /tmp/overlay in external root case as well --- mount_root.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mount_root.c b/mount_root.c index eec60d6..f1474f0 100644 --- a/mount_root.c +++ b/mount_root.c @@ -718,6 +718,8 @@ static int extroot(const char *prefix) ERROR("switching to pivotroot failed - continue normal boot\n"); umount("/mnt"); } else { + umount("/tmp/overlay"); + rmdir("/tmp/overlay"); rmdir("/tmp/extroot/mnt"); rmdir("/tmp/extroot"); return 0; -- 2.11.0