From: Daan De Meyer Date: Thu, 17 Apr 2025 09:52:42 +0000 (+0200) Subject: dnf: Stop messing around with plugins X-Git-Tag: v26~237 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2407a305c5c0b4348ea802d3a42786aeb858b5e;p=thirdparty%2Fmkosi.git dnf: Stop messing around with plugins 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. --- diff --git a/mkosi/installer/dnf.py b/mkosi/installer/dnf.py index 82d23a362..ec69a145a 100644 --- a/mkosi/installer/dnf.py +++ b/mkosi/installer/dnf.py @@ -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"]