aboutsummaryrefslogtreecommitdiffstats
path: root/init/do_mounts.c
diff options
context:
space:
mode:
Diffstat (limited to 'init/do_mounts.c')
-rw-r--r--init/do_mounts.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/init/do_mounts.c b/init/do_mounts.c
index f4b7b9d278cd..21b3b8f33a72 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -409,6 +409,10 @@ void __init prepare_namespace(void)
409 409
410 if (saved_root_name[0]) { 410 if (saved_root_name[0]) {
411 root_device_name = saved_root_name; 411 root_device_name = saved_root_name;
412 if (!strncmp(root_device_name, "mtd", 3)) {
413 mount_block_root(root_device_name, root_mountflags);
414 goto out;
415 }
412 ROOT_DEV = name_to_dev_t(root_device_name); 416 ROOT_DEV = name_to_dev_t(root_device_name);
413 if (strncmp(root_device_name, "/dev/", 5) == 0) 417 if (strncmp(root_device_name, "/dev/", 5) == 0)
414 root_device_name += 5; 418 root_device_name += 5;