0c0a85f3bb245b55c8bb08df6e1ae5a3a84ab395
Instead of assuming that the error is "unable to find file", print the actual error from getFiles. I just had a situation where the file exists, but a dependency couldn't be found. Before: generateInitfsExtra: getHookFiles: unable to find file "/usr/bin/expect" required by "/etc/postmarketos-mkinitfs/files-extra/ondev2-test.files" After: generateInitfsExtra: getHookFiles: unable to add file "/usr/bin/expect" required by "/etc/postmarketos-mkinitfs/files-extra/ondev2-test.files": getBinaryDeps: unable to locate dependency for "/usr/bin/expect": libexpect5.45.4.so
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%