This repo contains a simple mkosi config that will build a bootable Hyperscale
image. By default, a CentOS Stream 9 image is built. To create a CentOS Stream 8
image, add -r 8
when running mkosi. mkosi 19 or newer is required.
To build the image, clone the mkosi repository and run the following commands:
mkosi -f # Build the image sudo mkosi boot # Boot the image in systemd-nspawn mkosi qemu # Boot the image in qemu
To test new rpm package builds, create a file mkosi.local.conf and configure the
BuildSources=
setting to mount your systemd source tree in the systemd/
directory and the rpm repository in the systemd/rpm
directory. For example:
[Content] BuildSources=../../systemd:systemd ../rpm/systemd:systemd/rpm
mkosi will then build the latest version of the rpm and install it into the image (except for standalone, devel and tests packages).
For more information on how to use mkosi, you can take a look at https://github.com/systemd/mkosi/blob/main/mkosi.md.