Create our boot image properly

Lovingly stolen from blue-common and then adapted