]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
debian: drop workarounds for EoL Debian versions
authorJoerg Behrmann <behrmann@physik.fu-berlin.de>
Mon, 12 Jun 2023 13:59:24 +0000 (15:59 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 30 Jun 2023 12:23:20 +0000 (13:23 +0100)
mkosi/distributions/debian.py

index 5b606ed1d2d0dd458eefa58bc423e648c03d5a97..a792da12ab01a76eb579e5348d3d9e0708763765 100644 (file)
@@ -38,10 +38,7 @@ class DebianInstaller(DistributionInstaller):
         updates = f"deb {state.config.mirror} {state.config.release}-updates {repos}"
 
         # Security updates repos are never mirrored
-        if state.config.release in ("stretch", "buster"):
-            security = f"deb http://security.debian.org/debian-security {state.config.release}/updates {repos}"
-        else:
-            security = f"deb http://security.debian.org/debian-security {state.config.release}-security {repos}"
+        security = f"deb http://security.debian.org/debian-security {state.config.release}-security {repos}"
 
         return [main, updates, security]
 
@@ -99,12 +96,6 @@ class DebianInstaller(DistributionInstaller):
                 run(["dpkg-deb", "--fsys-tarfile", deb], stdout=f)
                 run(["tar", "-C", state.root, "--keep-directory-symlink", "--extract", "--file", f.name])
 
-        # There is a bug in Debian stretch where libuuid1 (which is essential) unecessarily depends on passwd,
-        # which breaks the installation as passwd is then configured before base-passwd
-
-        if state.config.release == "stretch":
-            cls.install_packages(state, ["base-passwd"])
-
         # Finally, run apt to properly install packages in the chroot without having to worry that maintainer
         # scripts won't find basic tools that they depend on.