summaryrefslogtreecommitdiffstats
path: root/mkosi.presets/10-initrd.conf
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-05-06 11:36:58 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-05-12 11:38:02 +0200
commit33ad6163ba7b8dc2e308766b941343c74fb4b685 (patch)
tree12100f7b8e0fa2fe4eefe92467386ed3c4987a87 /mkosi.presets/10-initrd.conf
parentmkosi: Use initrd symlink without format/compression (diff)
downloadsystemd-33ad6163ba7b8dc2e308766b941343c74fb4b685.tar.xz
systemd-33ad6163ba7b8dc2e308766b941343c74fb4b685.zip
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.
Diffstat (limited to '')
-rw-r--r--mkosi.presets/10-initrd.conf3
1 files changed, 3 insertions, 0 deletions
diff --git a/mkosi.presets/10-initrd.conf b/mkosi.presets/10-initrd.conf
index 4201770f2e..6516b510c7 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.