That makes sense.
The way I was running novena-image, was with the changes I made including allowing all packages to come via apt-get (less fiddly than finding and downloading them all). apt-get doesn't apply any ordering apart from whatever it works out from the dependency tree, so uboot-novena was named before on the command line but got installed after.
I can think of potential fixes/workarounds when using apt-get, although I guess they all depend on whether you're interested in merging those changes or not.
If you are thinking of maybe incorporating those changes, possible fixes/workarounds I can think of include:
- Have linux-image-novena depend on novena-uboot.
- Add a special case to novena-image.sh so if novena-uboot is in the list of packages, it runs 'apt get install novena-uboot' first before it does the main multi-package apt-get install.
- Extend the novena-kernel-post-install-postinst script a bit so it can run in one of two cases. If called from kernel postinst then it does what it does now. If called from uboot postinst then it find the newest installed kernel and copies that in, instead.
If any of these sound good (or any other option) then I'm happy to try to implement and test, send another pull request.