generate_bootimg is set, but mkbootimg is not installed or failed
generate_legacy_uboot_initfs is set, but mkimage is not installed
It should print a meaningful error message, that explains how to fix this. Example:
ERROR: You have set "deviceinfo_generate_bootimg" to true, but the "mkbootimg" package is not installed.In order to fix this, please add "mkbootimg" it to your device-package's "depends=" line.
... and after that bail out with exit 1 (so both apk and pmbootstrap will return an error).
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
Sorry, I've tagged this a bit wrong. I meant to make this issue about postmarketos-mkintifs, not about pmbootstrap.
As explained here, we can install the package, which contains img2simg on the fly in the install step - so we don't even need to specify it as explicit dependency.
Unfortunately using sparse images doesn't solve the problem on the fp2... But it's most likely a problem with the Fairphone bootloader and not with pmOS.
$ ./pmbootstrap.py flasher flash_system[21:25:46] (native) flash system image[sudo] password for luca: target reported max download size of 536870912 byteserasing 'system'...OKAY [ 0.029s]sending sparse 'system' 1/2 (524285 KB)...OKAY [ 16.494s]writing 'system' 1/2...FAILED (remote: Unknown chunk type)finished. total time: 16.533s[21:29:37] ERROR: Command failed: (native) % fastboot flash system /home/user/rootfs/fairphone-fp2.img[21:29:37] Run 'pmbootstrap log' for details.[21:29:37] See also: <https://postmarketos.org/troubleshooting>
No, apparently it's just a bug that only appears when flashing large images with fastboot. Android gets installed with the recovery normally so this issue doesn't appear there.
We drifted a bit off-topic here - I recommend posting further comments regarding libsparse in a new issue, and discussing the "should fail hard if dependency missing" thing in this issue again.