From: Daan De Meyer Date: Sun, 16 Jul 2023 09:59:19 +0000 (+0200) Subject: Put dnf command last again in the cmdline X-Git-Tag: v15~76^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b66a575a77197a2e970b6e7749ea60892dfc4eb1;p=thirdparty%2Fmkosi.git Put dnf command last again in the cmdline It only has to be in front of the cmd specific options, which in our case was only --allowerasing, so since that's gone now, let's put the command last again. --- diff --git a/mkosi/distributions/fedora.py b/mkosi/distributions/fedora.py index badf666f0..f69ef195f 100644 --- a/mkosi/distributions/fedora.py +++ b/mkosi/distributions/fedora.py @@ -180,7 +180,6 @@ def invoke_dnf( dnf, "--assumeyes", f"--config={state.pkgmngr / 'etc/dnf/dnf.conf'}", - command, "--best", f"--releasever={release}", f"--installroot={state.root}", @@ -217,7 +216,7 @@ def invoke_dnf( if not state.config.with_docs: cmdline += ["--no-docs" if dnf.endswith("dnf5") else "--nodocs"] - cmdline += sort_packages(packages) + cmdline += [command, *sort_packages(packages)] bwrap(cmdline, apivfs=state.root if apivfs else None,