From f972ff4d30262c6ed388bd43be5a1b9649481385 Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Sat, 15 Mar 2008 15:39:14 -0300 Subject: [PATCH] /usr on squashfs must be mounted after creation of loop0 Signed-off-by: Claudio Matsuoka --- finit-alt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/finit-alt.c b/finit-alt.c index e8b36d2a..fb3ff022 100644 --- a/finit-alt.c +++ b/finit-alt.c @@ -176,9 +176,6 @@ int main() mount("tmpfs", "/var/lock", "tmpfs", 0, "mode=1777"); mount(SYSROOT, "/", NULL, MS_MOVE, NULL); - unlink("/etc/mtab"); - system("mount -a"); - #ifdef MAKE_DEVICES debug("make devices"); mkdir("/dev/input", 0755); @@ -195,6 +192,9 @@ int main() blkdev("/dev/loop0", 0600, 7, 0); #endif + unlink("/etc/mtab"); + system("mount -a"); /* must be after creation of /dev/loop0 */ + umask(0022); /*