startup.patch 850 B

12345678910111213141516171819202122232425
  1. diff -Nur linux-4.4.6.orig/init/initramfs.c linux-4.4.6/init/initramfs.c
  2. --- linux-4.4.6.orig/init/initramfs.c 2016-03-16 16:43:17.000000000 +0100
  3. +++ linux-4.4.6/init/initramfs.c 2016-03-27 14:15:43.931044532 +0200
  4. @@ -653,6 +653,9 @@
  5. */
  6. load_default_modules();
  7. }
  8. +#ifdef CONFIG_DEVTMPFS_MOUNT
  9. + devtmpfs_mount("dev");
  10. +#endif
  11. return 0;
  12. }
  13. rootfs_initcall(populate_rootfs);
  14. diff -Nur linux-4.4.6.orig/init/main.c linux-4.4.6/init/main.c
  15. --- linux-4.4.6.orig/init/main.c 2016-03-16 16:43:17.000000000 +0100
  16. +++ linux-4.4.6/init/main.c 2016-03-27 14:15:43.935044783 +0200
  17. @@ -1011,6 +1011,8 @@
  18. if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
  19. pr_err("Warning: unable to open an initial console.\n");
  20. + printk(KERN_WARNING "Starting Linux (built with OpenADK).\n");
  21. +
  22. (void) sys_dup(0);
  23. (void) sys_dup(0);
  24. /*