I'm sending this on behalf of Erik. Apart from adding the missing bug reference in patch 1/4, I also added a 'sync' call as part of the reboot operation to ensure that reboot (after extraction of big rootfs) of target doesn't take much longer than expected by testimage.