mirror of
https://github.com/troglobit/finit.git
synced 2026-10-08 00:24:17 +07:00
/usr on squashfs must be mounted after creation of loop0
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
+3
-3
@@ -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);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user