Contents:
在Gentoo环境下安装Dracut工具:
emerge --ask sys-kernel/dracut
/etc/dracut.conf
执行 dracut 可以生成 initramfs :
dracut
initramfs
如果内核模块和驱动被直接编译进内核(而不是作为单独模块和firmware的引用),则可以使用 --no-kernel 参数:
--no-kernel
dracut --host-only --no-kernel
gentoo linux wiki: Dracut
archlinux wiki: dracut
How to build an initramfs using Dracut on Linux