]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Only build initrd if Bootable= is enabled or set to "auto"
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 6 May 2023 09:36:58 +0000 (11:36 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 12 May 2023 09:38:02 +0000 (11:38 +0200)
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

index 4201770f2ef2eab4192101d5e3b46168d5acbee0..6516b510c7dc715d61adc81a8392169d05a74603 100644 (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.