- Sep 05, 2021
-
-
Clayton Craft authored
This directory doesn't exist all the time, e.g. if the kernel was built without modules or no modules were installed for some reason. Assume the kernel package knows what it is doing and just print a message that might be helpful if the kernel package ends up not knowing what it is doing.
-
- Sep 01, 2021
-
-
Clayton Craft authored
I misread what strings.Trim does, the 2nd param is a _cut set_, so this was removing any occurance any characters in the 2nd param. Since the file extension is always a suffix, this uses TrimSuffix. Fixes a bug where 'virtio_blk.ko' was being trimmed to 'virtio_bl'
-
- Aug 19, 2021
-
-
Clayton Craft authored
the characters - and _ are indistinguishable for module names, to the kernel. But obviously are different when it comes to filenames/paths... so this fixes an issue where the module was previously not found if it was specified in config with the opposite - or _ than what the real filename for the module had.
-
- Aug 18, 2021
-
-
Clayton Craft authored
-
Clayton Craft authored
boot-deploy will handle post-processing steps for initramfs/kernel, and installation into /boot. Also see: https://gitlab.com/postmarketOS/boot-deploy
-
Clayton Craft authored
post-processing/installation will be handled by an external app, so use a temp work dir for the external app to work out of when it is invoked
-
Clayton Craft authored
-
- Aug 17, 2021
-
-
Clayton Craft authored
A custom extract test includes reading AND writing the extracted archive contents to /tmp (which is probably a slow disk), so this uses busybox's gzip -t ("test file integrity") and seems to take about half the time (~10s vs ~6s measured loosely on pinephone)
-
Clayton Craft authored
It might be missing if the device package is installed after mkinitfs is being called, so don't cause apk triggers to error out by returning failure.
-
Clayton Craft authored
Sometimes this is fine, e.g. when mkinitfs is run before the device package is installed in a chroot. So it shouldn't kill the app.
-
Clayton Craft authored
The free space check, checksumming, and moving to the final location will be outsourced to "boot-deploy", so the verification done here is just to extract the archive to make sure it is valid.
-
- Aug 12, 2021
-
-
Clayton Craft authored
This file is no longer a template since pmOS is only supporting 1 installed kernel at a time
-
Clayton Craft authored
pmOS will only support 1 kernel: https://gitlab.com/postmarketOS/pmaports/-/issues/660
-
- Aug 11, 2021
-
-
Clayton Craft authored
-
Clayton Craft authored
-
Clayton Craft authored
Just checks linting, and build/test.
-
Clayton Craft authored
-
Clayton Craft authored
This was left over from when I was trying to use the 'crc' cpio format, that allows checksumming files in the cpio for checking integrity. The 'crc' format isn't actually supported by the kernel... See: https://lore.kernel.org/linux-doc/20210721115153.28620-2-ddiss@suse.de/
-
Clayton Craft authored
-
- Aug 10, 2021
-
-
Clayton Craft authored
https://github.com/golang/go/wiki/Modules#should-i-commit-my-gosum-file-as-well-as-my-gomod-file `go mod tidy` was also run on the go.mod file
-
Clayton Craft authored
To help prevent any confusion about which distro this 'mkinitfs' is intended for
-
Clayton Craft authored
This adds several steps to the "write" action, by writing it to a temp location, extracting it, checksumming it, copying to destination, verifying checksum, and using Rename to atomically replace any existing file in the destination.
-
Clayton Craft authored
renameio basically just does: Sync(), Close(), Rename(). This will be done here instead of using an external dependency
-
Clayton Craft authored
This will be used to test archive integrity by extracting it
-
Clayton Craft authored
This uses sha256 which, after benchmarking, doesn't seem to be any faster or slower than sha1. md5 was surprisingly slower (on aarch64), maybe because there are some CPU accelerated things in sha* ?
-
Clayton Craft authored
-
Clayton Craft authored
-
- Aug 09, 2021
-
-
Clayton Craft authored
-
Clayton Craft authored
-