What can make passing init=/path/to/program to the kernel not start program as init?

https://unix.stackexchange.com/questions/30414/what-can-make-passing-init-path-to-program-to-the-kernel-not-start-program-as-i

 

If you are using initrd or initramfs, keep in mind the following:

  • rdinit= is used instead of init=

  • if rdinit= is not given, the attempted default paths are: /sbin/init, /etc/init, /bin/init and /bin/sh but not /init

    When not using initrd, /init is the first path tried, followed by the others.

posted @ 2020-05-11 12:21  dolinux  阅读(124)  评论(0)    收藏  举报