mirror of https://github.com/OpenIPC/firmware.git
20 lines
499 B
Diff
20 lines
499 B
Diff
diff --git a/init/main.c b/init/main.c
|
|
index fda1470cb9a2..19d19446514b 100755
|
|
--- a/init/main.c
|
|
+++ b/init/main.c
|
|
@@ -1052,11 +1052,13 @@ static noinline void __init kernel_init_freeable(void)
|
|
*/
|
|
|
|
if (!ramdisk_execute_command)
|
|
- ramdisk_execute_command = "/init";
|
|
+ ramdisk_execute_command = "/sbin/init";
|
|
|
|
if (sys_access((const char __user *) ramdisk_execute_command, 0) != 0) {
|
|
ramdisk_execute_command = NULL;
|
|
prepare_namespace();
|
|
+ } else {
|
|
+ devtmpfs_mount("dev");
|
|
}
|
|
|
|
/*
|