1 From: Daniel Golle <daniel@makrotopia.org>
2 Subject: try auto-mounting ubi0:rootfs in init/do_mounts.c
4 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
6 init/do_mounts.c | 26 +++++++++++++++++++++++++-
7 1 file changed, 25 insertions(+), 1 deletion(-)
10 +++ b/init/do_mounts.c
11 @@ -248,7 +248,30 @@ retry:
17 +#ifdef CONFIG_MTD_ROOTFS_ROOT_DEV
18 +static int __init mount_ubi_rootfs(void)
20 + int flags = MS_SILENT;
24 + err = do_mount_root("ubi0:rootfs", "ubifs", flags, \
40 #ifdef CONFIG_ROOT_NFS
42 #define NFSROOT_TIMEOUT_MIN 5
43 @@ -385,6 +408,11 @@ static inline void mount_block_root(char
45 void __init mount_root(char *root_device_name)
47 +#ifdef CONFIG_MTD_ROOTFS_ROOT_DEV
48 + if (!mount_ubi_rootfs())