Clayton Craft ad560591e1 deviceinfo: parse only required variables
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"
2023-02-21 00:47:03 -08:00
2023-02-21 00:47:03 -08:00
2023-02-21 00:47:03 -08:00
2023-02-21 00:47:03 -08:00
2021-08-09 15:23:39 -07:00
2023-02-21 00:47:03 -08:00
2022-09-11 14:03:14 -07:00

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.

Description
No description provided
Readme GPL-3.0 566 KiB
2025-09-26 07:20:09 +00:00
Languages
Go 97.6%
Makefile 2.4%