From 601b141c741d9efb00277dcb297e3a78df402cc2 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Aug 07 2023 09:32:26 +0000 Subject: Update mkosi testing docs for systemd backport We can drop the `ExtraSearchPaths=` stuff once Fedora 39 releases with systemd v254. --- diff --git a/docs/internal/systemd.md b/docs/internal/systemd.md index 2e5b5fd..2e4e416 100644 --- a/docs/internal/systemd.md +++ b/docs/internal/systemd.md @@ -137,15 +137,23 @@ But the majority of the time, issues arise due to SELinux. CentOS Stream has SEL You can also do testing using the mkosi image builder: -``` -git clone https://github.com/systemd/mkosi -git clone https://pagure.io/centos-sig-hyperscale/mkosi hyperscale -ln -s mkosi/bin/mkosi ~/.local/bin -cd hyperscale -mkdir local -cp /var/lib/mock/centos-stream-9-x86_64/result/*.rpm local -createrepo_c local -mkosi --extra-search-path -f qemu +```sh +$ sudo dnf install python3 bubblewrap +$ git clone https://github.com/systemd/mkosi +$ sudo ln -s mkosi/bin/mkosi /usr/local/bin/mkosi +$ git clone https://pagure.io/centos-sig-hyperscale/mkosi hyperscale +$ cd hyperscale +$ mkdir mkosi.conf.d/ +$ tee mkosi.conf.d/local.conf < + +[Content] +WithTests=yes # Change to no if you don't want rpmbuild to run the unit tests. +BuildSources=:systemd + :rpm +EOF +$ mkosi -f qemu ``` ## Modifying SELinux Policies (and when your VM fails to boot)