Oliver Smith 2a75cf9b4e getInitfsExtraFiles: add scripts from hooks-extra (MR 27)
Put scripts from /etc/postmarketos-mkinitfs/hooks-extra into the extra
initramfs instead of the regular one, similar to how it is possible with
files listed in /etc/postmarketos-mkinitfs/files-extra.

This way we will be able to launch hooks not only very early in the
initramfs as it's currently the case. But also later on after the
initramfs-extra was extracted, and more files are available. ondev2 will
make use of this feature.
2023-01-17 08:12:03 +01:00
2022-09-16 09:40:10 -07:00
2021-08-09 15:23:39 -07:00
2022-09-11 13:46:50 -07: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%