From: Daan De Meyer Date: Sat, 6 May 2023 09:36:58 +0000 (+0200) Subject: mkosi: Only build initrd if Bootable= is enabled or set to "auto" X-Git-Tag: v254-rc1~497 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33ad6163ba7b8dc2e308766b941343c74fb4b685;p=thirdparty%2Fsystemd.git mkosi: Only build initrd if Bootable= is enabled or set to "auto" With this change, Bootable= can be set to "no" for a faster build intended for booting in systemd-nspawn but not qemu. --- diff --git a/mkosi.presets/10-initrd.conf b/mkosi.presets/10-initrd.conf index 4201770f2ef..6516b510c7d 100644 --- a/mkosi.presets/10-initrd.conf +++ b/mkosi.presets/10-initrd.conf @@ -1,5 +1,8 @@ # SPDX-License-Identifier: LGPL-2.1-or-later +[Match] +Bootable=auto,yes + [Output] Format=cpio # TODO: Switch to zstd once we stop building CentOS Stream 8.