Programatically create Ubuntu images with mkosi.
This repository is a companion resource to this blog post.
I suggest you clone this repository and then follow along with the blog post.
To install mkosi:
sudo apt install mkosi
To create the image:
sudo mkosi