mkosi config for image builds

Ensure these packages are installed

$ sudo dnf install mkosi arch-install-scripts systemd-container zip

If you're not building on aarch64, you'll also want:

$ sudo dnf install qemu-user-static-aarch64

Note that the currently released mkosi version (mkosi 14) cannot build this config successfully, so you'll want to run the latest git main branch instead until a new one is released. This can be installed with:

python3 -m pip install --user git+

To build a Rawhide image:

$ ./

TODO list:

  1. Remove the need to run update-grub during the image creation process.

  2. Set selinux to enforcing