mirror of
https://github.com/troglobit/finit.git
synced 2026-11-08 16:11:10 +00:00
/usr on squashfs must be mounted after creation of loop0
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
1 parent
904c12d06a
commit
f972ff4d30
1 file changed
+3
-3
+3
-3
@@ -176,9 +176,6 @@ int main()
|
|||||||
mount("tmpfs", "/var/lock", "tmpfs", 0, "mode=1777");
|
mount("tmpfs", "/var/lock", "tmpfs", 0, "mode=1777");
|
||||||
mount(SYSROOT, "/", NULL, MS_MOVE, NULL);
|
mount(SYSROOT, "/", NULL, MS_MOVE, NULL);
|
||||||
|
|
||||||
unlink("/etc/mtab");
|
|
||||||
system("mount -a");
|
|
||||||
|
|
||||||
#ifdef MAKE_DEVICES
|
#ifdef MAKE_DEVICES
|
||||||
debug("make devices");
|
debug("make devices");
|
||||||
mkdir("/dev/input", 0755);
|
mkdir("/dev/input", 0755);
|
||||||
@@ -195,6 +192,9 @@ int main()
|
|||||||
blkdev("/dev/loop0", 0600, 7, 0);
|
blkdev("/dev/loop0", 0600, 7, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
unlink("/etc/mtab");
|
||||||
|
system("mount -a"); /* must be after creation of /dev/loop0 */
|
||||||
|
|
||||||
umask(0022);
|
umask(0022);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in new issue
Block a user