Skip to content
Markus Hansmair edited this page Jun 19, 2023 · 8 revisions

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.

Installation

mkinitcpio-systemd-extras is available as an AUR package. Download, build and install with makepkgand 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.

Usage

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 autodetectand after systemd.

Consult the hook-specific pages for detailed descriptions of the hooks and all configuration options.

sd-network

sd-resolve

sd-tinyssh

sd-dropbear

sd-hold

Clone this wiki locally