1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

mkosi: Only build system preset by default

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.
This commit is contained in:
Daan De Meyer 2023-09-09 10:20:01 +02:00
parent 076a16dee8
commit a940484ee5
4 changed files with 14 additions and 6 deletions

View File

@ -1,5 +1,8 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Preset]
Presets=system
[Output]
OutputDirectory=mkosi.output
BuildDirectory=mkosi.builddir

View File

@ -1,9 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Match]
Bootable=|auto
Bootable=|yes
[Preset]
Dependencies=base

View File

@ -2,14 +2,12 @@
[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

View File

@ -0,0 +1,11 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Match]
Bootable=!no
Format=disk
[Preset]
Dependencies=initrd
[Content]
Initrds=../../mkosi.output/initrd