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.
This commit is contained in:
Daan De Meyer 2023-05-06 11:36:58 +02:00
parent a84cc71e7a
commit 33ad6163ba

View file

@ -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.