000-keep_initrafs_the_default.patch 638 B

12345678910111213141516171819202122232425
  1. Upstream changed the default rootfs to tmpfs when none has been passed
  2. to the kernel - this doesn't fit our purposes, so change it back.
  3. Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
  4. --- a/init/do_mounts.c
  5. +++ b/init/do_mounts.c
  6. @@ -628,6 +628,7 @@ int __init init_rootfs(void)
  7. if (err)
  8. return err;
  9. +#if 0
  10. if (IS_ENABLED(CONFIG_TMPFS) && !saved_root_name[0] &&
  11. (!root_fs_names || strstr(root_fs_names, "tmpfs"))) {
  12. err = shmem_init();
  13. @@ -635,6 +636,9 @@ int __init init_rootfs(void)
  14. } else {
  15. err = init_ramfs_fs();
  16. }
  17. +#else
  18. + err = init_ramfs_fs();
  19. +#endif
  20. if (err)
  21. unregister_filesystem(&rootfs_fs_type);