mirror of
https://gitlab.alpinelinux.org/alpine/mkinitfs.git
synced 2026-07-21 17:26:37 +00:00
residual fork of mkinitfs for our specific patches
- Shell 46.9%
- C 35.6%
- Roff 12.3%
- Makefile 5.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| features.d | ||
| nlplug-findfs | ||
| tests | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| .mailmap | ||
| bootchartd.in | ||
| fstab | ||
| group | ||
| initramfs-init.in | ||
| Makefile | ||
| mdev.conf | ||
| mkinitfs-bootparam.7.in | ||
| mkinitfs.1.in | ||
| mkinitfs.in | ||
| nlplug-findfs.1.in | ||
| passwd | ||
| README.md | ||
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: