startup.patch 860 B

12345678910111213141516171819202122232425
  1. diff -Nur linux-5.4.147.orig/init/initramfs.c linux-5.4.147/init/initramfs.c
  2. --- linux-5.4.147.orig/init/initramfs.c 2021-09-16 12:56:14.000000000 +0200
  3. +++ linux-5.4.147/init/initramfs.c 2021-09-16 16:11:25.493140211 +0200
  4. @@ -674,6 +674,9 @@
  5. initrd_start = 0;
  6. initrd_end = 0;
  7. +#ifdef CONFIG_DEVTMPFS_MOUNT
  8. + devtmpfs_mount("dev");
  9. +#endif
  10. flush_delayed_fput();
  11. return 0;
  12. }
  13. diff -Nur linux-5.4.147.orig/init/main.c linux-5.4.147/init/main.c
  14. --- linux-5.4.147.orig/init/main.c 2021-09-16 12:56:14.000000000 +0200
  15. +++ linux-5.4.147/init/main.c 2021-09-16 16:11:25.497140211 +0200
  16. @@ -1198,6 +1198,8 @@
  17. if (ksys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
  18. pr_err("Warning: unable to open an initial console.\n");
  19. + printk(KERN_WARNING "Starting Linux (built with OpenADK).\n");
  20. +
  21. (void) ksys_dup(0);
  22. (void) ksys_dup(0);
  23. /*