]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
mkosi-initrd: remove dpkg in newer ubuntu/debian releases
authorLuca Boccassi <luca.boccassi@gmail.com>
Sat, 7 Dec 2024 00:33:32 +0000 (00:33 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 8 Dec 2024 14:51:08 +0000 (15:51 +0100)
mkosi/resources/mkosi-initrd/mkosi.conf.d/10-debian-kali-ubuntu/mkosi.conf
mkosi/resources/mkosi-initrd/mkosi.conf.d/10-debian-kali-ubuntu/mkosi.conf.d/10-dpkg.conf [new file with mode: 0644]

index 2d352292da6a04c39fa4c42de3b2a16da9bf96bb..c75f5a8e994d3627ecdf8d39399f73455e2ce03a 100644 (file)
@@ -26,9 +26,5 @@ Packages=
         # Various libraries that are dlopen'ed by systemd
         libfido2-1
 
-RemovePackages=
-        # TODO: Remove dpkg if dash ever loses its dependency on it.
-        # dpkg
-
 RemoveFiles=
         /usr/share/locale/*
diff --git a/mkosi/resources/mkosi-initrd/mkosi.conf.d/10-debian-kali-ubuntu/mkosi.conf.d/10-dpkg.conf b/mkosi/resources/mkosi-initrd/mkosi.conf.d/10-debian-kali-ubuntu/mkosi.conf.d/10-dpkg.conf
new file mode 100644 (file)
index 0000000..7d41d76
--- /dev/null
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[TriggerMatch]
+Distribution=debian
+Release=!bullseye
+Release=!bookworm
+
+[TriggerMatch]
+Distribution=ubuntu
+Release=!focal
+Release=!jammy
+Release=!noble
+Release=!oracular
+
+[Content]
+RemovePackages=
+        # Needs perl >= 5.40.0-8 and dash >= 0.5.12-7 to drop this
+        dpkg