1
0

startup.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. diff -Nur linux-4.17.orig/init/initramfs.c linux-4.17/init/initramfs.c
  2. --- linux-4.17.orig/init/initramfs.c 2018-06-03 23:15:21.000000000 +0200
  3. +++ linux-4.17/init/initramfs.c 2018-06-10 17:01:16.000000000 +0200
  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.17.orig/init/main.c linux-4.17/init/main.c
  14. --- linux-4.17.orig/init/main.c 2018-06-03 23:15:21.000000000 +0200
  15. +++ linux-4.17/init/main.c 2018-06-10 17:01:52.000000000 +0200
  16. @@ -1138,6 +1138,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. /*
  24. @@ -1146,7 +1148,7 @@
  25. */
  26. if (!ramdisk_execute_command)
  27. - ramdisk_execute_command = "/init";
  28. + ramdisk_execute_command = "/sbin/init";
  29. if (ksys_access((const char __user *)
  30. ramdisk_execute_command, 0) != 0) {