From 1c329956e5995dfffec49139096b75d9bd42decc Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 3 May 2024 14:15:55 +0200 Subject: [PATCH] mkosi: Insist on KVM, VSOCK and TPM by default By default mkosi will not run VMs with these features if they're not available, but since various stuff in systemd makes use of these, let's fail loudly if any of these are not available by default in systemd. Users can still override these defaults locally if they wish. --- .github/workflows/mkosi.yml | 2 -- mkosi.conf | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mkosi.yml b/.github/workflows/mkosi.yml index 6953f9e4eae..e080eb38048 100644 --- a/.github/workflows/mkosi.yml +++ b/.github/workflows/mkosi.yml @@ -121,8 +121,6 @@ jobs: [Host] ToolsTree=default ToolsTreeDistribution=fedora - QemuVsock=yes - QemuKvm=yes # TODO: Drop once https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2038777 is fixed in Github Actions QemuFirmware=uefi EOF diff --git a/mkosi.conf b/mkosi.conf index 0f2705f5fcb..1c2d448ef98 100644 --- a/mkosi.conf +++ b/mkosi.conf @@ -41,4 +41,7 @@ Credentials=journal.storage=persistent @Incremental=yes @RuntimeBuildSources=yes @QemuSmp=2 +@QemuSwtpm=yes +@QemuVsock=yes +@QemuKvm=yes ToolsTreePackages=virtiofsd -- 2.47.3