1
0

startup.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. diff -Nur linux-3.10.33.orig/init/initramfs.c linux-3.10.33/init/initramfs.c
  2. --- linux-3.10.33.orig/init/initramfs.c 2014-03-07 06:58:45.000000000 +0100
  3. +++ linux-3.10.33/init/initramfs.c 2014-03-15 18:32:07.240436750 +0100
  4. @@ -622,6 +622,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-3.10.33.orig/init/main.c linux-3.10.33/init/main.c
  15. --- linux-3.10.33.orig/init/main.c 2014-03-07 06:58:45.000000000 +0100
  16. +++ linux-3.10.33/init/main.c 2014-03-15 18:32:07.240436750 +0100
  17. @@ -885,6 +885,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. /*
  25. @@ -893,7 +895,7 @@
  26. */
  27. if (!ramdisk_execute_command)
  28. - ramdisk_execute_command = "/init";
  29. + ramdisk_execute_command = "/sbin/init";
  30. if (sys_access((const char __user *) ramdisk_execute_command, 0) != 0) {
  31. ramdisk_execute_command = NULL;