← 返回命令列表

Linux command

dracut 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

dracut

Example

dracut -f

Example

dracut --kver [kernel_version]

List

dracut --list-modules

说明

dracut generates initramfs images to boot the Linux kernel. The initramfs contains modules and tools needed to mount the root filesystem. Configuration files in /etc/dracut.conf, /etc/dracut.conf.d/, and /usr/lib/dracut/dracut.conf.d/ customize the initramfs content.

参数

-f, --force
Overwrite existing initramfs
--kver _version_
Generate for specific kernel version
--list-modules
List available dracut modules
--add _modules_
Add modules to initramfs
--omit _modules_
Omit modules from initramfs
-H, --hostonly
Only include drivers for current host

FAQ

What is the dracut command used for?

dracut generates initramfs images to boot the Linux kernel. The initramfs contains modules and tools needed to mount the root filesystem. Configuration files in /etc/dracut.conf, /etc/dracut.conf.d/, and /usr/lib/dracut/dracut.conf.d/ customize the initramfs content.

How do I run a basic dracut example?

Run `dracut` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f, --force do in dracut?

Overwrite existing initramfs