-
Notifications
You must be signed in to change notification settings - Fork 7
Home
mkinitcpio-systemd-extras is a collection of install hooks for mkinitcpio. With these install hooks it is possible to add extra functionality to initramfs images used during bootstrapping of a Linux system.
Mind that mkinitcpio is a tool specific for Arch Linux and derived Linux distributions.
As the name suggests the hooks require a systemd based initramfs. They will not work with a busybox based initramfs. See mkinitcpio's documentation for details.
mkinitcpio-systemd-extras is available as an AUR package. Download, build and install with makepkg
and pacman
as described in Arch Linux' Wiki. (Alternatively, you may use your preferred AUR helper.) With the installation itself nothing happens to your initramfs images. You have to configure mkinitcpio
to take certain hooks into account. In some cases it may be necessary to provide supplemental information by means of additional settings in /etc/mkinitcpio.conf
. See Usage below and the hook-specific pages for details.
Mind the optional dependencies of package mkinitcpio-systemd-extras
. Consult the hook-specific pages concerning what dependencies you may have to install in addition. It is recommended to install these dependencies with option --asdeps
.
In general, to equip your initramfs images with extra functionality you have to add the hook's name(s) to the array HOOKS
in /etc/mkinitcpio.conf
. The position of a hook from mkinitcpio-systemd-extras within the array HOOKS
is mostly irrelevant. It only has to be specified after autodetect
and after systemd
.
Consult the hook-specific pages for detailed descriptions of the hooks and all configuration options.