residual fork of mkinitfs for our specific patches
  • Shell 47.9%
  • C 33.5%
  • Roff 12.7%
  • Makefile 5.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-12-03 14:01:32 +01:00
features.d features: add vfat 2026-11-30 22:18:49 +01:00
nlplug-findfs nlplug-findfs: use a cheap key derivation for the LUKS fixtures 2026-11-30 12:10:14 +00:00
tests init: import zfs pool after resume from hibernation 2026-12-01 17:42:51 +01:00
.gitignore make: tidy up the nlplug-findfs test targets 2026-11-23 13:32:08 +00:00
.gitlab-ci.yml ci: run the nlplug-findfs VM tests only when needed 2026-11-30 10:52:48 +00:00
.mailmap add mailmap 2023-03-28 12:37:05 +03:00
bootchartd.in bootchartd: shellcheck fixes 2026-06-05 17:35:20 +02:00
ci-docker.sh ci-docker.sh: add the test-nlplug-findfs job 2026-11-23 13:32:08 +00:00
fstab added missing fstab 2009-04-30 11:26:43 +00:00
group group: add back kvm 2024-11-29 21:28:11 +01:00
initramfs-init.in init: import zfs pool after resume from hibernation 2026-12-01 17:42:51 +01:00
LICENSE Add LICENSE 2026-11-30 23:07:25 +01:00
Makefile release 3.15.0 2026-12-03 14:01:32 +01:00
mdev.conf Use a bundled mdev configuration file 2026-06-05 19:24:52 +02:00
mkinitfs-bootparam.7.in init: detect the root filesystem type if rootfstype is not set 2026-11-30 22:44:50 +01:00
mkinitfs.1.in mkinitfs.1: document the default output file 2026-11-30 12:10:50 +00:00
mkinitfs.in Fix mkinitfs compat with update-extlinux on source-built kernels 2026-11-30 12:10:50 +00:00
nlplug-findfs.1.in doc: fix a few typos 2025-05-28 09:24:31 +00:00
passwd {group,passwd}: cleanup default users/groups 2024-11-27 17:34:47 +00:00
README.md doc: fix a few typos 2025-05-28 09:24:31 +00:00

mkinitfs

This is the initramfs generator for Alpine Linux, including support for apk and Alpine Diskless boot.

Dependencies

To compile manually, you need to have the following build tools available:

  • make
  • gcc with musl and kernel-headers

nlplug-findfs will link against the following libraries (runtime deps):

  • libkmod
  • libblkid (from util-linux)
  • libcryptsetup

To run the tests you need:

  • kyua
  • lddtree

Installation

Build mkinitfs via make and install it via make install. The installation honours the DESTDIR parameter to overwrite the sysroot path.

For testing, it is not necessary to install mkinitfs into your root file system.

Tweaking

The Makefile is kept slim and debuggable.

Testing

Run make check to run the tests.

Useful references: