)
if context.config.distribution.is_apt_distribution():
- # Ubuntu Focal's kernel does not support zstd-compressed initrds so use xz instead.
- if context.config.distribution == Distribution.ubuntu and context.config.release == "focal":
- compression = Compression.xz
# Older Debian and Ubuntu releases do not compress their kernel modules, so we compress the
# initramfs instead. Note that this is not ideal since the compressed kernel modules will
# all be decompressed on boot which requires significant memory.
- elif context.config.distribution == Distribution.debian and context.config.release in (
+ if context.config.distribution == Distribution.debian and context.config.release in (
"sid",
"testing",
):
def config_default_compression(namespace: argparse.Namespace) -> Compression:
if namespace.output_format in (OutputFormat.tar, OutputFormat.cpio, OutputFormat.uki, OutputFormat.esp):
- if namespace.distribution == Distribution.ubuntu and namespace.release == "focal":
- return Compression.xz
- else:
- return Compression.zstd
+ return Compression.zstd
elif namespace.output_format == OutputFormat.oci:
return Compression.gz
else:
def repositories(cls, context: Context, local: bool = True) -> Iterable[AptRepository]:
types = ("deb", "deb-src")
- # From kinetic onwards, the usr-is-merged package is available in universe and is required by
- # mkosi to set up a proper usr-merged system so we add the universe repository unconditionally.
components = (
"main",
- *(["universe"] if context.config.release not in ("focal", "jammy") else []),
*context.config.repositories,
)
to the entire match section instead of just a single condition. As an
example, the following will match if the distribution is `debian` and
the release is `bookworm` or if the distribution is `ubuntu` and the
-release is `focal`.
+release is `noble`.
```ini
[TriggerMatch]
[TriggerMatch]
Distribution=ubuntu
-Release=focal
+Release=noble
```
The semantics of conditions in `[TriggerMatch]` sections is the same as
[TriggerMatch]
Distribution=ubuntu
-Release=!focal
Release=!jammy
Release=!noble
Release=!oracular
# SPDX-License-Identifier: LGPL-2.1-or-later
-[TriggerMatch]
-Distribution=debian
-
-[TriggerMatch]
-Distribution=kali
-
-[TriggerMatch]
-Distribution=ubuntu
-Release=!focal
+[Match]
+Distribution=|debian
+Distribution=|kali
+Distribution=|ubuntu
[Content]
Packages=
--- /dev/null
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+Distribution=ubuntu
+
+[Distribution]
+Repositories=main,universe
[TriggerMatch]
Distribution=ubuntu
-Release=!focal
Release=!jammy
[TriggerMatch]