921-use_preinit_as_init.patch 443 B

123456789101112
  1. --- a/init/main.c
  2. +++ b/init/main.c
  3. @@ -835,7 +835,8 @@ static int __ref kernel_init(void *unuse
  4. printk(KERN_WARNING "Failed to execute %s. Attempting "
  5. "defaults...\n", execute_command);
  6. }
  7. - if (!run_init_process("/sbin/init") ||
  8. + if (!run_init_process("/etc/preinit") ||
  9. + !run_init_process("/sbin/init") ||
  10. !run_init_process("/etc/init") ||
  11. !run_init_process("/bin/init") ||
  12. !run_init_process("/bin/sh"))