1
0

921-use_preinit_as_init.patch 465 B

123456789101112
  1. --- a/init/main.c
  2. +++ b/init/main.c
  3. @@ -964,7 +964,8 @@ static int __ref kernel_init(void *unuse
  4. panic("Requested init %s failed (error %d).",
  5. execute_command, ret);
  6. }
  7. - if (!try_to_run_init_process("/sbin/init") ||
  8. + if (!try_to_run_init_process("/etc/preinit") ||
  9. + !try_to_run_init_process("/sbin/init") ||
  10. !try_to_run_init_process("/etc/init") ||
  11. !try_to_run_init_process("/bin/init") ||
  12. !try_to_run_init_process("/bin/sh"))