mkinitfs 3.14.1-r0 — man1/mkinitfs.1.gz, Alpine 3.24.1

MKINITFS(1) Early startup MKINITFS(1)

mkinitfs - Generate an initramfs

mkinitfs [OPTIONS] [KERNELVERSION]

mkinitfs collects files from the root file system and creates a compressed initramfs from it.

Dont use files from the root file system, use specified path instead.
Use configfile instead of /etc/mkinitfs/mkinitfs.conf.
Compress initramfs using gzip (default), xz, zstd, lz4 or none.
Use fstab instead of /usr/share/mkinitfs/fstab.
Use specified features.
Print this help.
Use initfile as init instead of /usr/share/mkinitfs/initramfs-init.
Do not clean up temporary files.
Also copy host apk keys to initramfs.
Do a dry run and only list files that would have been used.
List all available features.
Don't include kernel modules or firmware into the initramfs.
Set another outfile.
Prepend features.d search path. Use this if you want to define your own features outside of the system-wide directories.
Quiet mode.
Include modloop signature.
Use tempdir when creating initramfs image.

/etc/mkinitfs/mkinitfs.conf
Default configuration file. It contains the list of default features in the format of features="...".
/etc/mkinitfs/features.d/FEATURE.modules
Contains a list of kernel modules. Using the feature will cause the given kernel modules to be included in the initramfs. The modules are given by their filesystem paths, relative to /lib/modules/KERNELVERSION/.
/etc/mkinitfs/features.d/FEATURE.files
Contains a list of absolute file names which will be included into the generated initramfs if the feature is enabled.
/usr/share/mkinitfs/initramfs-init
Shell script which will be placed as /init in the initramfs. This functions as the first executed program in early userspace.

Written by Natanael Copa <ncopa@alpinelinux.org>, Timo Teräs <timo.teras@iki.fi> and others.

Alpine Linux GitLab: <https://gitlab.alpinelinux.org/alpine/mkinitfs/-/issues>

mkinitfs-bootparam(7)

July 2018 mkinitfs 3.14.1-r0