diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-05-06 11:36:58 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-05-12 11:38:02 +0200 |
commit | 33ad6163ba7b8dc2e308766b941343c74fb4b685 (patch) | |
tree | 12100f7b8e0fa2fe4eefe92467386ed3c4987a87 | |
parent | mkosi: Use initrd symlink without format/compression (diff) | |
download | systemd-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.
-rw-r--r-- | mkosi.presets/10-initrd.conf | 3 |
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. |