7.3. Path to init
The init is selected at:
-
initrd or initramfs system:
/init
, a custom one can be set with therdinit=
kernel command line parameter -
otherwise: default is
/sbin/init
, followed by some other paths, a custom one can be set withinit=
The final init that actually got selected is shown on Linux v5.9.2 a line of type:
<6>[ 0.309984] Run /sbin/init as init process
at the very end of the boot logs.