If the container does not have any /boot/vmlinuz* file, preepare-rootfs will fail with:
Disk image: /tmp/root.img
vmlinux_setup - Preparing Linux image
chmod: cannot access '/boot/vmlinuz*': No such file or directory
libguestfs: error: /usr/bin/supermin exited with error status 1.
To see full error messages you may need to enable debugging.
Do:
export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
and run the command again. For further information, read:
http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
You can also run 'libguestfs-test-tool' and post the *complete* output
into a bug report or message to the libguestfs mailing list.
Error: Process completed with exit code 2.
If the container does not have any
/boot/vmlinuz*
file,preepare-rootfs
will fail with:This is due to https://github.com/libbpf/ci/blob/e669be266646d038f101462967e46a1775032cb3/prepare-rootfs/run.sh#L344
Installing
linux-image-generic
in the container works.but we should re-assess if this is really needed still.