On Tue, 29 Jan 2019 13:37:43 -0700, Grant Taylor wrote:

> > An initramfs typically loads kernel modules, assuming there are any
> > that need to be loaded.  
> 
> And where is it going to load them from if said kernel doesn't support 
> initrds or loop back devices or the archive or file system type that
> the initramfs is using?

AFAIR the initramfs code is built into the kernel, not as an option. The
reason given for using a cpio archive is that it is simple and available
in the kernel. The kernel itself has an initramfs built into it which is
executed automatically, it's just that this initramfs is usually empty.
So loading an initramfs is trivial for any kernel, and loading anything
after that is handled by the initramfs.

That only leaves loading the initramfs file from disk, which is handled
by the bootloader along with the kernel file.


-- 
Neil Bothwick

TEXAS VIRUS: Makes sure that it's bigger than any other file.

Attachment: pgpjYJRwaLpQH.pgp
Description: OpenPGP digital signature

Reply via email to