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 de78539..96d1007 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;
                        }