initramfs 是 Linux 启动过程中的一种机制:把一个临时的根文件系统(通常是压缩的 cpio 存档)加载到内存里,在真正挂载磁盘上的根文件系统之前运行早期用户态程序与驱动加载(例如加载模块、解密磁盘、组 RAID/LVM 等)。
/ˌɪnɪtˈræmˌfʌz/
The system dropped into initramfs after a failed boot.
系统启动失败后进入了 initramfs 紧急环境。
In a full-disk encryption setup, the initramfs loads the cryptographic modules and prompts for a passphrase before mounting the real root filesystem.
在全盘加密的配置中,initramfs 会先加载加密相关模块并提示输入口令,然后才挂载真正的根文件系统。
initramfs = init(初始化/启动阶段)+ RAM(内存)+ fs(filesystem,文件系统)。它在 Linux 早期启动流程中逐渐取代了较旧的 initrd(initial ramdisk)思路,常见于现代发行版的内核与引导加载器配合中。