]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Drop support for Focal 3344/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 11 Jan 2025 10:00:26 +0000 (11:00 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 13 Jan 2025 13:00:40 +0000 (14:00 +0100)
It's going EOL in April, so I think it's fine if we drop support for
it.

mkosi/__init__.py
mkosi/config.py
mkosi/distributions/ubuntu.py
mkosi/resources/man/mkosi.1.md
mkosi/resources/mkosi-initrd/mkosi.conf.d/10-debian-kali-ubuntu/mkosi.conf.d/10-dpkg.conf
mkosi/resources/mkosi-initrd/mkosi.conf.d/10-debian-kali-ubuntu/mkosi.conf.d/10-libtss.conf
mkosi/resources/mkosi-tools/mkosi.conf.d/05-ubuntu.conf [new file with mode: 0644]
mkosi/resources/mkosi-tools/mkosi.conf.d/10-debian-kali-ubuntu/mkosi.conf.d/pkcs11-provider.conf

index a59a11e2339d90100df80d8dd54423282163bda8..e9148b471bb072c0fd4b67007f72d8c7bb95f16e 100644 (file)
@@ -1441,13 +1441,10 @@ def build_kernel_modules_initrd(context: Context, kver: str) -> Path:
     )
 
     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",
         ):
index 37e164c74393c38e37e4e132b4ca57a4f43d1225..f9ed77c086176fe944609888845cbd37c044a9ea 100644 (file)
@@ -836,10 +836,7 @@ def config_parse_mode(value: Optional[str], old: Optional[int]) -> Optional[int]
 
 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:
index f9cd813742da96a175c2aede25380f42826136fe..745b34c6d10121368b26362a445ec6e6ce4caf65 100644 (file)
@@ -25,11 +25,8 @@ class Installer(debian.Installer):
     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,
         )
 
index cde614e31f66911bddbdf5e1a032fb957e23aacc..b3edb7dff7e91e7c39baa8fe93f64d21adb79d98 100644 (file)
@@ -392,7 +392,7 @@ sections. These are identical to triggering conditions except they apply
 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]
@@ -401,7 +401,7 @@ Release=bookworm
 
 [TriggerMatch]
 Distribution=ubuntu
-Release=focal
+Release=noble
 ```
 
 The semantics of conditions in `[TriggerMatch]` sections is the same as
index 7d41d76ff8bda2d5d9ed60e09ef6cbd4ec0576af..bfe36320e1bdc91f3fe9521834843b251f1029e0 100644 (file)
@@ -7,7 +7,6 @@ Release=!bookworm
 
 [TriggerMatch]
 Distribution=ubuntu
-Release=!focal
 Release=!jammy
 Release=!noble
 Release=!oracular
index 1e6a8bc5525773db1a61f7850f105f9b6e84b2f3..44ac770b4445bba6cde09793de8792b38b79a3f4 100644 (file)
@@ -1,14 +1,9 @@
 # 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=
diff --git a/mkosi/resources/mkosi-tools/mkosi.conf.d/05-ubuntu.conf b/mkosi/resources/mkosi-tools/mkosi.conf.d/05-ubuntu.conf
new file mode 100644 (file)
index 0000000..ddde775
--- /dev/null
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+Distribution=ubuntu
+
+[Distribution]
+Repositories=main,universe