1 From eea9e1785e4c05c2a3444506aabafa0ae958538f Mon Sep 17 00:00:00 2001
2 From: Daniel Golle <daniel@makrotopia.org>
3 Date: Sat, 17 May 2014 03:35:02 +0200
4 Subject: [PATCH 4/5] try auto-mounting ubi0:rootfs in init/do_mounts.c
5 To: openwrt-devel@lists.openwrt.org
7 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
9 init/do_mounts.c | 26 +++++++++++++++++++++++++-
10 1 file changed, 25 insertions(+), 1 deletion(-)
12 --- a/init/do_mounts.c
13 +++ b/init/do_mounts.c
14 @@ -438,7 +438,27 @@ retry:
20 +static int __init mount_ubi_rootfs(void)
22 + int flags = MS_SILENT;
26 + err = do_mount_root("ubi0:rootfs", "ubifs", flags, \
40 #ifdef CONFIG_ROOT_NFS
42 #define NFSROOT_TIMEOUT_MIN 5
43 @@ -532,6 +552,10 @@ void __init mount_root(void)
44 change_floppy("root floppy");
47 +#ifdef CONFIG_MTD_ROOTFS_ROOT_DEV
48 + if (!mount_ubi_rootfs())
53 int err = create_dev("/dev/root", ROOT_DEV);