busybox hexdump can break some kernels

October 25, 20241 min. read

A recent update to busybox's hexdump applet has a bug that can result in some kernel packages being built with a broken kernel image file. When this happens, no error is shown by pmbootstrap --build or abuild during the build step, and no error is shown by apk during installation, but the kernel image that is installed is truncated and will not boot.

If you are building kernels for postmarketOS, it's recommended to use the latest pmbootstrap from git to avoid hitting this bug. We have worked around it in pmbootstrap, by requiring the full hexdump app when building stuff. The bug was reported upstream and as of today no fix as been identified.

Also see: