startup.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. diff -Nur linux-4.15.13.orig/init/initramfs.c linux-4.15.13/init/initramfs.c
  2. --- linux-4.15.13.orig/init/initramfs.c 2018-03-24 11:02:53.000000000 +0100
  3. +++ linux-4.15.13/init/initramfs.c 2018-04-04 21:05:40.670682792 +0100
  4. @@ -659,6 +659,9 @@
  5. * us a chance to load before device_initcalls.
  6. */
  7. load_default_modules();
  8. +#ifdef CONFIG_DEVTMPFS_MOUNT
  9. + devtmpfs_mount("dev");
  10. +#endif
  11. return 0;
  12. }
  13. diff -Nur linux-4.15.13.orig/init/main.c linux-4.15.13/init/main.c
  14. --- linux-4.15.13.orig/init/main.c 2018-03-24 11:02:53.000000000 +0100
  15. +++ linux-4.15.13/init/main.c 2018-04-04 21:05:40.671682779 +0100
  16. @@ -1075,6 +1075,8 @@
  17. if (sys_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) sys_dup(0);
  22. (void) sys_dup(0);
  23. /*
  24. @@ -1083,7 +1085,7 @@
  25. */
  26. if (!ramdisk_execute_command)
  27. - ramdisk_execute_command = "/init";
  28. + ramdisk_execute_command = "/sbin/init";
  29. if (sys_access((const char __user *) ramdisk_execute_command, 0) != 0) {
  30. ramdisk_execute_command = NULL;