]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Don't skip initrd dependency when building a directory image
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 22 Sep 2023 11:10:28 +0000 (13:10 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 22 Sep 2023 11:52:02 +0000 (13:52 +0200)
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

index e5dedafdc341c3ff4d810350916b8177a614b566..47a730dc0eab05ddbb0c10c41120c6c560da8213 100644 (file)
@@ -2,7 +2,8 @@
 
 [Match]
 Bootable=!no
-Format=disk
+Format=|disk
+Format=|directory
 
 [Preset]
 Dependencies=initrd