kernel/modules/other/mlxreg: add new package
[openwrt/openwrt.git] / target / linux / generic / pending-6.6 / 492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
index f95ec46f14eb5b046104981e5e207d618d4a6b9f..297789e5396b3e61cd41c783085389038a0cf99c 100644 (file)
@@ -8,7 +8,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
 
 --- a/init/do_mounts.c
 +++ b/init/do_mounts.c
-@@ -446,7 +446,30 @@ retry:
+@@ -248,7 +248,30 @@ retry:
  out:
        put_page(page);
  }
@@ -40,14 +40,15 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  #ifdef CONFIG_ROOT_NFS
  
  #define NFSROOT_TIMEOUT_MIN   5
-@@ -579,6 +602,10 @@ void __init mount_root(void)
-               return;
-       }
- #endif
+@@ -385,6 +408,11 @@ static inline void mount_block_root(char
+ void __init mount_root(char *root_device_name)
+ {
 +#ifdef CONFIG_MTD_ROOTFS_ROOT_DEV
 +      if (!mount_ubi_rootfs())
 +              return;
 +#endif
-       if (ROOT_DEV == 0 && root_device_name && root_fs_names) {
-               if (mount_nodev_root() == 0)
-                       return;
++
+       switch (ROOT_DEV) {
+       case Root_NFS:
+               mount_nfs_root();