Yes, you can use Packer to customize Linux ISO images, including Alpine Linux. However, Packer typically generates images like qcow2 for virtual environments, not direct bootable ISOs for physical media. To use the qcow2 image on a USB, you’d need to convert it to a raw disk image using a tool like qemu-img and then write it to the USB. Creating a bootable ISO directly from a qcow2 image isn’t straightforward due to format differences, so it’s usually better to customize the ISO before or during the Packer build process if you need a bootable ISO.
When I try to mount iso file, I have the following error:
sudo mount -o ro,loop output-usb_image_installer/usb_image_installer.iso /media/iso
mount: /media/iso: wrong fs type, bad option, bad superblock on /dev/loop72, missing codepage or helper program, or other error.