1
0

921-use_preinit_as_init.patch 483 B

123456789101112
  1. --- a/init/main.c
  2. +++ b/init/main.c
  3. @@ -963,7 +963,8 @@ static int __ref kernel_init(void *unuse
  4. pr_err("Failed to execute %s (error %d). Attempting defaults...\n",
  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"))