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 @@ -446,7 +446,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 @@ -579,6 +602,10 @@ void __init mount_root(void)
47 +#ifdef CONFIG_MTD_ROOTFS_ROOT_DEV
48 + if (!mount_ubi_rootfs())
51 if (ROOT_DEV == 0 && root_device_name && root_fs_names) {
52 if (mount_nodev_root() == 0)