From: Jo-Philipp Wich Date: Fri, 26 Jul 2013 09:03:26 +0000 (+0200) Subject: mount_root: umount /tmp/overlay in external root case as well X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=52f96c91f0c8fb23dd9eb051c44dc98bcc21f671;p=project%2Fubox.git mount_root: umount /tmp/overlay in external root case as well --- 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;