diff --git a/mkosi.conf.d/10-systemd.conf b/mkosi.conf.d/10-systemd.conf index f25d53d2b76..adb46e488d3 100644 --- a/mkosi.conf.d/10-systemd.conf +++ b/mkosi.conf.d/10-systemd.conf @@ -1,5 +1,8 @@ # SPDX-License-Identifier: LGPL-2.1-or-later +[Preset] +Presets=system + [Output] OutputDirectory=mkosi.output BuildDirectory=mkosi.builddir diff --git a/mkosi.presets/initrd/mkosi.conf b/mkosi.presets/initrd/mkosi.conf index 5d347b71d81..0ef3a7bd4ad 100644 --- a/mkosi.presets/initrd/mkosi.conf +++ b/mkosi.presets/initrd/mkosi.conf @@ -1,9 +1,5 @@ # SPDX-License-Identifier: LGPL-2.1-or-later -[Match] -Bootable=|auto -Bootable=|yes - [Preset] Dependencies=base diff --git a/mkosi.presets/system/mkosi.conf b/mkosi.presets/system/mkosi.conf index 58cd4939427..aaf05364f8f 100644 --- a/mkosi.presets/system/mkosi.conf +++ b/mkosi.presets/system/mkosi.conf @@ -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 diff --git a/mkosi.presets/system/mkosi.conf.d/05-initrd.conf b/mkosi.presets/system/mkosi.conf.d/05-initrd.conf new file mode 100644 index 00000000000..e5dedafdc34 --- /dev/null +++ b/mkosi.presets/system/mkosi.conf.d/05-initrd.conf @@ -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