fix invalid path in extroot exit path
authorJohn Crispin <blogic@openwrt.org>
Thu, 20 Jun 2013 14:04:26 +0000 (16:04 +0200)
committerJohn Crispin <blogic@openwrt.org>
Thu, 20 Jun 2013 14:04:26 +0000 (16:04 +0200)
Signed-off-by: John Crispin <blogic@openwrt.org>
mount_root.c

index de78539122aa334ecdc8285313307459c83faa87..96d1007dea91524fc32e6ec41b784f53358db264 100644 (file)
@@ -539,7 +539,7 @@ static int extroot(void)
                                umount("/tmp/overlay");
                        } else if (fopivot("/overlay", "/rom")) {
                                ERROR("switching to extroot failed - continue normal boot\n");
-                               umount("overlay");
+                               umount("/overlay");
                        } else {
                                return 0;
                        }