1
0

startup.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. diff -Nur linux-4.14.24.orig/init/initramfs.c linux-4.14.24/init/initramfs.c
  2. --- linux-4.14.24.orig/init/initramfs.c 2018-03-03 10:24:39.000000000 +0100
  3. +++ linux-4.14.24/init/initramfs.c 2018-03-08 06:51:14.808479805 +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.14.24.orig/init/main.c linux-4.14.24/init/main.c
  14. --- linux-4.14.24.orig/init/main.c 2018-03-03 10:24:39.000000000 +0100
  15. +++ linux-4.14.24/init/main.c 2018-03-08 06:15:19.961419100 +0100
  16. @@ -1069,6 +1069,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. @@ -1077,7 +1079,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;