residual fork of mkinitfs for our specific patches
  • Shell 46.9%
  • C 35.6%
  • Roff 12.3%
  • Makefile 5.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-09 11:19:32 +02:00
features.d Use a bundled mdev configuration file 2026-06-05 19:24:52 +02:00
nlplug-findfs nlplug-findfs/*.sh: shellcheck fixes 2026-06-05 17:31:59 +02:00
tests tests: initramfs-init.test fix shellcheck 2026-06-05 17:45:23 +02:00
.gitignore gitignore: add vim temporary files 2024-01-17 10:24:37 +00:00
.gitlab-ci.yml CI: add shellcheck test 2026-06-05 17:58:05 +02: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
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: shellcheck fixes 2026-06-05 17:22:55 +02:00
Makefile ==== release 3.14.0 ==== 2026-06-09 11:19:32 +02:00
mdev.conf Use a bundled mdev configuration file 2026-06-05 19:24:52 +02:00
mkinitfs-bootparam.7.in init: allow disabling emergency shell with panic= boot option 2025-11-28 09:37:35 +00:00
mkinitfs.1.in mkinitfs: add 'none' compression 2022-11-08 15:28:23 +01:00
mkinitfs.in Use a bundled mdev configuration file 2026-06-05 19:24:52 +02: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: