startup.patch 695 B

123456789101112131415161718192021
  1. diff -Nur linux-5.4.53.orig/init/main.c linux-5.4.53/init/main.c
  2. --- linux-5.4.53.orig/init/main.c 2020-07-22 09:33:18.000000000 +0200
  3. +++ linux-5.4.53/init/main.c 2020-07-28 17:33:28.000000000 +0200
  4. @@ -1196,6 +1196,8 @@
  5. if (ksys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
  6. pr_err("Warning: unable to open an initial console.\n");
  7. + printk(KERN_WARNING "Starting Linux (built with OpenADK).\n");
  8. +
  9. (void) ksys_dup(0);
  10. (void) ksys_dup(0);
  11. /*
  12. @@ -1204,7 +1206,7 @@
  13. */
  14. if (!ramdisk_execute_command)
  15. - ramdisk_execute_command = "/init";
  16. + ramdisk_execute_command = "/sbin/init";
  17. if (ksys_access((const char __user *)
  18. ramdisk_execute_command, 0) != 0) {