Generate an initramfs image using an alternative configuration file

mkinitcpio

  • Generates initial ramdisk environments for booting the Linux kernel based on the specified preset(s).
    More information: <https://man.archlinux.org/man/mkinitcpio.8>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

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

click the source code to copy install mkinitcpio on any operating system with command-not-found.com