Some ideas / annoyances
pmbootstrap initfs extract exists but there's no way to re-build from the edited contents. This would only need to run the
create_cpio_image "$tmpdir" "$outfile"
append_device_tree
create_uboot_files
create_bootimg
functions probably.
Option to add set -x
into the init script (at the top) to show all shell commands that are being run to be able to
investigate where the init script is hanging.
mkinitfs sometimes gets called twice (when mkinitfs gets installed/upgraded or kernel gets installed/upgraded) due to the trigger calling it and pmbootstrap calling it.