projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73c619e
)
[MTD] Allow alternate JFFS2 mount variant for root filesystem.
author
Joern Engel
<joern@wh.fh-wedel.de>
Tue, 30 May 2006 12:25:46 +0000
(14:25 +0200)
committer
Joern Engel
<joern@wh.fh-wedel.de>
Tue, 30 May 2006 12:25:46 +0000
(14:25 +0200)
With this patch, "root=mtd3" and "root=mtd:foo" work for a JFFS2 rootfs.
Signed-off-by: Joern Engel <joern@wh.fh-wedel.de>
init/do_mounts.c
patch
|
blob
|
blame
|
history
diff --git
a/init/do_mounts.c
b/init/do_mounts.c
index f4b7b9d278cd3bf040cdac1a1ee123401549f103..21b3b8f33a728c505cd7396d9e7517775c07706c 100644
(file)
--- a/
init/do_mounts.c
+++ b/
init/do_mounts.c
@@
-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;