]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
dnf: Stop messing around with plugins
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 17 Apr 2025 09:52:42 +0000 (11:52 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 17 Apr 2025 10:28:04 +0000 (12:28 +0200)
We disabled plugins by default a long time ago because the
versionlock plugin's configuration from the host was interfering
with image builds. Now that we have completely ownership over /etc,
there shouldn't be a need to disable plugins anymore if we assume
they won't do anything nasty by default without configuration.

mkosi/installer/dnf.py

index 82d23a362878da58acb2a3c632efc23edde26d83..ec69a145a5957cb0d8d5b259a4113d4ddca0ce91 100644 (file)
@@ -150,12 +150,8 @@ class Dnf(PackageManager):
             f"--setopt=cachedir=/var/cache/{cls.subdir(context.config)}",
             f"--setopt=install_weak_deps={int(context.config.with_recommends)}",
             "--setopt=check_config_file_age=0",
-            "--disable-plugin=*" if dnf == "dnf5" else "--disableplugin=*",
             "--setopt=persistdir=/buildroot/var/lib/dnf",
-        ]  # fmt: skip
-
-        for plugin in ("builddep", "versionlock", "reflink"):
-            cmdline += ["--enable-plugin", plugin] if dnf == "dnf5" else ["--enableplugin", plugin]
+        ]
 
         if ARG_DEBUG.get():
             cmdline += ["--setopt=debuglevel=10"]