Clayton Craft fb00e9e94b cmd/mkinitfs: don't compress initramfs-extra (MR 25)
There is little(?) reason to compress the -extra archive, but some
there are some good reasons why it should be left uncompressed:

        1) decompression increases boot time
        2) selecting exotic formats (e.g. lzma or zstd) can actually
           increase the initramfs size since you now have to include
           support for those archive formats

In the future this could be made configurable...
2023-02-26 12:18:27 -08:00
2023-02-21 00:47:03 -08:00
2023-02-21 00:47:03 -08:00
2023-02-24 09:21:24 -08:00
2023-02-24 09:21:24 -08:00
2021-08-09 15:23:39 -07:00
2023-02-21 00:47:03 -08:00

mkinitfs is a tool for generating an initramfs. It was originally designed for postmarketOS, but a long term design goal is to be as distro-agnostic as possible. It's capable of generating a split initramfs, in the style used by postmarketOS, and supports running boot-deploy to install/finalize boot files on a device.

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 tool can be run with no options:

# mkinitfs

Configuration is done through a series of flat text files that list directories and files, and by placing scripts in specific directories. See man 1 mkinitfs for more information.

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%