/usr on squashfs must be mounted after creation of loop0

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
Claudio Matsuoka
2008-03-15 15:39:14 -03:00
parent 904c12d06a
commit f972ff4d30
+3 -3
View File
@@ -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);
/*