From fc5473b73728c4ec9ee1650818f623605848f896 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 22 Sep 2023 13:10:28 +0200 Subject: [PATCH] mkosi: Don't skip initrd dependency when building a directory image mkosi now supports booting directory images in qemu using virtiofs. However, until distribution kernels build the virtiofs driver directly into the kernel, we need an initrd to make this work, so make sure to pull in the initrd preset when building a directory image that could be bootable to make this work. --- mkosi.presets/system/mkosi.conf.d/05-initrd.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mkosi.presets/system/mkosi.conf.d/05-initrd.conf b/mkosi.presets/system/mkosi.conf.d/05-initrd.conf index e5dedafdc34..47a730dc0ea 100644 --- a/mkosi.presets/system/mkosi.conf.d/05-initrd.conf +++ b/mkosi.presets/system/mkosi.conf.d/05-initrd.conf @@ -2,7 +2,8 @@ [Match] Bootable=!no -Format=disk +Format=|disk +Format=|directory [Preset] Dependencies=initrd -- 2.47.3