2
0

511-init-bypass-device-lookup-for-dev-fit-rootfs.patch 833 B

12345678910111213141516171819202122232425
  1. From 5ede3f8aed9a1a579bf7304142600d1f3500add9 Mon Sep 17 00:00:00 2001
  2. From: Daniel Golle <[email protected]>
  3. Date: Mon, 12 Jun 2023 03:58:42 +0100
  4. Subject: [PATCH 2/2] init: bypass device lookup for /dev/fit* rootfs
  5. Allow 'rootwait' as /dev/fit* can show up late if the underlaying
  6. device is probed late.
  7. Signed-off-by: Daniel Golle <[email protected]>
  8. ---
  9. init/do_mounts.c | 3 ++-
  10. 1 file changed, 2 insertions(+), 1 deletion(-)
  11. --- a/init/do_mounts.c
  12. +++ b/init/do_mounts.c
  13. @@ -463,7 +463,8 @@ static dev_t __init parse_root_device(ch
  14. int error;
  15. dev_t dev;
  16. - if (!strncmp(root_device_name, "mtd", 3) ||
  17. + if (!strncmp(root_device_name, "fit", 3) ||
  18. + !strncmp(root_device_name, "mtd", 3) ||
  19. !strncmp(root_device_name, "ubi", 3))
  20. return Root_Generic;
  21. if (strcmp(root_device_name, "/dev/nfs") == 0)