Skip to content

chapter: role of the initramfs #177

@orangecms

Description

@orangecms

probably under LinuxBoot Components

TL;DR Linux needs a rootfs; either storage/partition with any supported fs, or initrd, or initramfs

initrd is being deprecated (has been for a decade anyway...):
https://www.phoronix.com/news/Initrd-Linux-Try-Removing-2025
because it is treated as a block device, which causes overhead

initramfs just means it's a cpio, can be either included in the kernel (CONFIG_INITRAMFS_SOURCE, mind calling it *.cpio or, if compressed. *.cpio.xz etc) or passed by placing in memory and giving the address via cmdline.
initrd can also be passed via cmdline, and the distinction is made by Linux when it recognizes a cpio - then it's an initramfs.

cmdline argument: initrdmem https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions