Source based on Blog Post @iximiuz (Ivan Velichko)
-
Create the Filesystem Tarball with Kernel and SystemD
packer build -only="filesystem.*" docker-ubuntu-focal-amd64.pkr.hcl
-
Create a Bootable Disk Image using:
packer build -only="partition.*" docker-ubuntu-jammy-amd64.pkr.hcl
The linux.img
will be available in the working directory