Skip to content

Commit

Permalink
[MTD] Allow alternate JFFS2 mount variant for root filesystem.
Browse files Browse the repository at this point in the history
With this patch, "root=mtd3" and "root=mtd:foo" work for a JFFS2 rootfs.

Signed-off-by: Joern Engel <joern@wh.fh-wedel.de>
  • Loading branch information
Joern Engel committed May 30, 2006
1 parent 73c619e commit e9482b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions init/do_mounts.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,10 @@ void __init prepare_namespace(void)

if (saved_root_name[0]) {
root_device_name = saved_root_name;
if (!strncmp(root_device_name, "mtd", 3)) {
mount_block_root(root_device_name, root_mountflags);
goto out;
}
ROOT_DEV = name_to_dev_t(root_device_name);
if (strncmp(root_device_name, "/dev/", 5) == 0)
root_device_name += 5;
Expand Down

0 comments on commit e9482b4

Please sign in to comment.