From 7616b50281681a0c7dd4b8b0cf570084301a4574 Mon Sep 17 00:00:00 2001
From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Fri, 24 Jan 2025 14:05:51 +0100
Subject: [PATCH] add --no-best to dnf install in the early phases

---
 lbuild-initvm.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lbuild-initvm.sh b/lbuild-initvm.sh
index cdb44734..a5b69acc 100755
--- a/lbuild-initvm.sh
+++ b/lbuild-initvm.sh
@@ -251,7 +251,7 @@ function fedora_download() {
     # So ideally if we want to be able to build f12 images from f18 we need an rpm that has
     # this patch undone, like we have in place on our f14 boxes (our f14 boxes need a f18-like rpm)
 
-    DNF="dnf --installroot=$INSTALL_ROOT --nogpgcheck -y --releasever=${fedora_release}"
+    DNF="dnf --installroot=$INSTALL_ROOT --no-best --nogpgcheck -y --releasever=${fedora_release}"
     echo "$DNF install $FEDORA_PREINSTALLED"
     $DNF install $FEDORA_PREINSTALLED || { echo "Failed to download rootfs, aborting." ; return 1; }
 
-- 
2.47.0