mirror of
https://github.com/troglobit/finit.git
synced 2026-11-02 13:20:32 +00:00
Mount /sys earlier (modprobe modprobe might use it) (blino)
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
1 parent
b9583fb354
commit
6afbcbdd6e
1 file changed
+1
-1
+1
-1
@@ -238,6 +238,7 @@ int main()
|
|||||||
reboot(RB_DISABLE_CAD);
|
reboot(RB_DISABLE_CAD);
|
||||||
|
|
||||||
mount("none", "/proc", "proc", 0, NULL);
|
mount("none", "/proc", "proc", 0, NULL);
|
||||||
|
mount("none", "/sys", "sysfs", 0, NULL);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Parse kernel parameters
|
* Parse kernel parameters
|
||||||
@@ -355,7 +356,6 @@ int main()
|
|||||||
mkdir("/dev/pts", 0755);
|
mkdir("/dev/pts", 0755);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mount("none", "/sys", "sysfs", 0, NULL);
|
|
||||||
mount("none", "/dev/pts", "devpts", 0, "gid=5,mode=620");
|
mount("none", "/dev/pts", "devpts", 0, "gid=5,mode=620");
|
||||||
mount("none", "/dev/shm", "tmpfs", 0, NULL);
|
mount("none", "/dev/shm", "tmpfs", 0, NULL);
|
||||||
mount("none", "/tmp", "tmpfs", 0, "mode=1777,size=128m");
|
mount("none", "/tmp", "tmpfs", 0, "mode=1777,size=128m");
|
||||||
|
|||||||
Reference in new issue
Block a user