ad560591e122f82f9144cf7ddc8d095efa7790ca
This greatly reduces the chance accidentally adding dependencies to the
other (currently unused) variables later on. Getting away from depending
on deviceinfo has a lot of benefits, but mainly it helps offload
device-specific boot configuration to boot-deploy. Handling those
complexities in a shell script is often nicer.
Also, reducing the need to handle variables that contain lists means
that this app doesn't have to worry about how to merge/handle multiple
versions of those. That might be useful later if mkinitfs has to read
deviceinfo config from multiple deviceinfo files.
For example, trying to figure out how to merge these two things is...
ehhh...
a_modules_initfs="abc bar banana bazz"
b_modules_initfs="foo bar bazz bar2 guava"
postmarketos-mkinitfs is a tool for generating an initramfs (and installing
it) on postmarketOS.
Building
Building this project requires a Go compiler/toolchain and make:
$ make
To install locally:
$ make install
Installation prefix can be set in the generally accepted way with setting
PREFIX:
$ make PREFIX=/some/location
# make PREFIX=/some/location install
Other paths can be modified from the command line as well, see the top section of
the Makefile for more information.
Tests (functional and linting) can be executed by using the test make target:
$ make test
Usage
The application uses configuration from /etc/deviceinfo, and does not support
any other options at runtime. It can be run simply by executing:
$ postmarketos-mkinitfs
For historical reasons, a symlink from mkinitfs to postmarketos-mkinitfs is
also installed by the makefile's install target.
postmarketos-mkinitfs-2.7.0
Latest
Languages
Go
97.6%
Makefile
2.4%