main/postmarketos-mkinitfs: use new mkinitfs
- Sep 03, 2021
-
-
Clayton Craft authored
This pmbootstrap version includes the necessary support for the new mkinitfs [ci:ignore-count] [ci:skip-build] too many changed kernels/packages, won't complete in CI
-
Clayton Craft authored
[ci:ignore-count] [ci:skip-build] too many changed kernels/packages, won't complete in CI
-
Clayton Craft authored
This function was changed, so these packages need to be rebuilt to have the kernel installed under the new filename 'vmlinuz'
-
Clayton Craft authored
-
Clayton Craft authored
Signal to pmbootstrap that pmaports supports the new mkinitfs tool
-
Clayton Craft authored
boot files are generic names (vmlinuz/initramfs), and 'flavor' is not included in the filenames anymore
-
Clayton Craft authored
Kernel file names will be generic (/boot/vmlinuz). Release path still has the 'flavor' in it so that pmbootstrap can still get a reference to which kernel package is installed
-
Clayton Craft authored
This replaces the mkinitfs script with a re-write (in Go). The re-written mkinitfs will atomically replace the initfs in /boot, check for free space before doing so, and try to do whatever it can to not leave the system in an unbootable state by botching the initfs creation/installation. pmb:cross-native with go cross compiling doesn't work exactly, it makes the correct binary, but on Alpine go uses -buildmode=pie which creates a dynamic thing, and the interpreter is wrong (e.g. it it set to use the host arch's interpreter, like /lib/ld-musl-x86_64 even though GOARCH=arm64) The init.sh script is no longer a template, "initramfs-extra" is used. Fixes https://gitlab.com/postmarketOS/pmaports/-/issues/1019 fixes https://gitlab.com/postmarketOS/pmaports/-/issues/660
-
Clayton Craft authored
This tool is used by the new mkinitfs to finalize/install boot files. It's based on the old mkinitfs_functions.sh, but includes some improvements like verifying free space in target directory, and trying to atomically mv files.
-