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.
dnf,
"--assumeyes",
f"--config={state.pkgmngr / 'etc/dnf/dnf.conf'}",
- command,
"--best",
f"--releasever={release}",
f"--installroot={state.root}",
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,