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:
parent
076a16dee8
commit
a940484ee5
@ -1,5 +1,8 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
[Preset]
|
||||
Presets=system
|
||||
|
||||
[Output]
|
||||
OutputDirectory=mkosi.output
|
||||
BuildDirectory=mkosi.builddir
|
||||
|
@ -1,9 +1,5 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
[Match]
|
||||
Bootable=|auto
|
||||
Bootable=|yes
|
||||
|
||||
[Preset]
|
||||
Dependencies=base
|
||||
|
||||
|
@ -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
|
||||
|
11
mkosi.presets/system/mkosi.conf.d/05-initrd.conf
Normal file
11
mkosi.presets/system/mkosi.conf.d/05-initrd.conf
Normal 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
|
Loading…
Reference in New Issue
Block a user