diff options
author | Joern Engel <joern@wh.fh-wedel.de> | 2006-05-30 08:25:46 -0400 |
---|---|---|
committer | Joern Engel <joern@wh.fh-wedel.de> | 2006-05-30 08:25:46 -0400 |
commit | e9482b4374e2596e6f3f1ab30c4ea469f4ac6311 (patch) | |
tree | 526893a35e432f7ae2be6300a134c5c7c79aaba6 /init/do_mounts.c | |
parent | 73c619ea0e49c9306afa7ea53c3362fbc56ffd70 (diff) |
[MTD] Allow alternate JFFS2 mount variant for root filesystem.
With this patch, "root=mtd3" and "root=mtd:foo" work for a JFFS2 rootfs.
Signed-off-by: Joern Engel <joern@wh.fh-wedel.de>
Diffstat (limited to 'init/do_mounts.c')
-rw-r--r-- | init/do_mounts.c | 4 |
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; |