]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Put dnf command last again in the cmdline
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 16 Jul 2023 09:59:19 +0000 (11:59 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 16 Jul 2023 09:59:19 +0000 (11:59 +0200)
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.

mkosi/distributions/fedora.py

index badf666f0fda9e09028926c9c9db011662b2ddfd..f69ef195f8dd8b8c950026b59ffa9e1c3261c8eb 100644 (file)
@@ -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,