Repack the kernel for image boot