mkinitcpio Command Examples

Generates initial ramdisk environments for booting the Linux kernel based on the specified preset(s). More information: https://manned.org/mkinitcpio.8.

mkinitcpio

mkinitcpio --preset {{linux}}

mkinitcpio --preset {{linux-lts}}

mkinitcpio --allpresets

mkinitcpio --config {{path/to/mkinitcpio.conf}} --generate {{path/to/initramfs.img}}

mkinitcpio --kernel {{kernel_version}} --generate {{path/to/initramfs.img}}

mkinitcpio --listhooks

mkinitcpio --hookhelp {{hook_name}}