https://github.com/alpinelinux/mkinitfs
[MIRROR] Tool to create initramfs images
https://github.com/alpinelinux/mkinitfs
alpine-linux linux
Last synced: about 1 year ago
JSON representation
[MIRROR] Tool to create initramfs images
- Host: GitHub
- URL: https://github.com/alpinelinux/mkinitfs
- Owner: alpinelinux
- Created: 2016-09-16T11:24:31.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-12-04T20:04:28.000Z (over 1 year ago)
- Last Synced: 2025-03-29T09:12:15.071Z (about 1 year ago)
- Topics: alpine-linux, linux
- Language: Shell
- Homepage: https://gitlab.alpinelinux.org/alpine/mkinitfs
- Size: 478 KB
- Stars: 56
- Watchers: 10
- Forks: 48
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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, its 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:
- https://manned.org/kyua.1
- https://github.com/freebsd/kyua/wiki/Quickstart-atf-sh-test
- https://manned.org/atf-sh-api