mkinitcpio
Generate initial ramdisk environments for booting the Linux kernel based on the specified preset(s). tldr-pages
On Linux
Linux
Simulate generating the initial ramdisk environments and print what would be done
mkinitcpioIdentifyGenerate ramdisk environments based on all existing presets (used to regenerate all the initramfs images after a change in /etc/mkinitcpio.conf)
sudo mkinitcpio --allpresetsIdentifyGenerate a ramdisk environment based on the linux preset
sudo mkinitcpio --preset linuxIdentifyGenerate a ramdisk environment based on the linux-lts preset
sudo mkinitcpio --preset linux-ltsIdentifyGenerate an initramfs image using an alternative configuration file
sudo mkinitcpio --config path/to/mkinitcpio.conf --generate path/to/initramfs.imgIdentifyGenerate an initramfs image for a kernel other than the one currently running (the installed kernel releases can be found in /usr/lib/modules/)
sudo mkinitcpio --kernel kernel_version --generate path/to/initramfs.imgIdentifyList all available hooks
mkinitcpio --listhooksIdentifyDisplay help for a specific hook
mkinitcpio --hookhelp hook_nameIdentify