image-builder builds Garuda Linux images with mkosi: a distrobox container image, a minimal OCI image for podman and docker, a disk image for Lima VM tests, and the edition live ISOs that garuda-tools buildiso built before. It keeps the iso-profiles model of shared packages and files plus edition-specific parts, as mkosi layers and profiles.
The repository has a Nix development shell with the build and test commands. Enter it with nix develop, or allow the .envrc file with direnv. See Building#Installation for building without Nix.
In the development shell, build and test an image:
$ build distrobox
$ distrobox-test
$ build iso mokka
$ iso-test mokkabuild runs build.sh as root in the builder container from ci/Containerfile. On an Arch-based host with mkosi 27 or later, build.sh also runs directly:
# ./build.sh limaThe results are in the mkosi.output/ directory.
The pages in docs/ describe how to operate image-builder:
| Page | Content |
|---|---|
| Common tasks | change packages, services and files, override per edition |
| Architecture | layers, outputs, live ISO boot, pacman keyring |
| Building | build options, incremental builds, local settings |
| Testing | boot check, distrobox, Lima and ISO tests |
| Editions | edition files, adding an edition |
| Installer | Calamares configuration |
| Continuous integration | jobs, triggers, publishing, signing, project setup |
| Troubleshooting | known problems and their solutions |
See CONTRIBUTING.md for the development shell, checks and commit messages. Report security issues as described in SECURITY.md.
image-builder is licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later), see LICENSE.
- mkosi documentation
- KDE Linux, the reference for the mkosi layout
- archiso, the reference for the hybrid ISO
- nspawn/mkosi-definitions, the source of the boot check, keyring, manifest and signing approach
- garuda-tools