From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Fri, 24 Jan 2025 13:05:51 +0000 (+0100)
Subject: add --no-best to dnf install in the early phases
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=7616b50281681a0c7dd4b8b0cf570084301a4574;p=build.git

add --no-best to dnf install in the early phases
---

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; }