Let's not build all presets by default, but only the system preset.
Also, let's only make the system preset depend on the initrd preset
if we're building a bootable disk image. This means that if we build
the system image as a cpio, uki or directory, the initrd preset will
be skipped as it's not necessary, making the build a little faster.
# SPDX-License-Identifier: LGPL-2.1-or-later
+[Preset]
+Presets=system
+
[Output]
OutputDirectory=mkosi.output
BuildDirectory=mkosi.builddir
# SPDX-License-Identifier: LGPL-2.1-or-later
-[Match]
-Bootable=|auto
-Bootable=|yes
-
[Preset]
Dependencies=base
[Preset]
Dependencies=base
- initrd
[Content]
Autologin=yes
BaseTrees=../../mkosi.output/base
ExtraTrees=../../mkosi.output/base-systemd
ExtraTrees=../../src:/usr/src/src
-Initrds=../../mkosi.output/initrd
Packages=
acl
bash-completion
--- /dev/null
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+Bootable=!no
+Format=disk
+
+[Preset]
+Dependencies=initrd
+
+[Content]
+Initrds=../../mkosi.output/initrd