From 33ad6163ba7b8dc2e308766b941343c74fb4b685 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sat, 6 May 2023 11:36:58 +0200 Subject: [PATCH] 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. --- mkosi.presets/10-initrd.conf | 3 +++ 1 file changed, 3 insertions(+) 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. -- 2.47.3