X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubox.git;a=blobdiff_plain;f=mount_root.c;h=f1474f0a2beee89ea9722a009baf3ba4dbe7df7d;hp=eec60d67afde10499db78f2850cd828f14e37eba;hb=21737b1ff2e0be28b68293c7ac198a8fe505cbc2;hpb=a5f2d3e71d2fe5d4ed9a3b709d53d63cd2cbaa9f 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;