Dracut
安装
在Gentoo环境下安装Dracut工具:
在Gentoo上安装dracut
emerge --ask sys-kernel/dracut
配置
/etc/dracut.conf
运行
执行
dracut
可以生成initramfs
:
执行
dracut
将会根据配置的 /etc/dracut.conf
生成 initramfs
dracut
如果内核模块和驱动被直接编译进内核(而不是作为单独模块和firmware的引用),则可以使用 --no-kernel
参数:
内核模块和驱动直接编译进内核,则创建
initramfs
时可以使用参数 --no-kernel
dracut --host-only --no-kernel