dnf-yum is needed on 41 and 43
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 18 Dec 2025 14:02:46 +0000 (15:02 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 18 Dec 2025 14:02:46 +0000 (15:02 +0100)
lbuild-initvm.sh

index 38b4a68..a6ea96f 100755 (executable)
@@ -254,7 +254,9 @@ function fedora_download() {
 
     DNF="dnf --installroot=$INSTALL_ROOT --no-best --nogpgcheck -y --releasever=${fedora_release}"
     # dnf-yum no longer exists in recent fedora
-    [[ $fedora_release == "f41" ]] && FEDORA_PREINSTALLED="$FEDORA_PREINSTALLED dnf-yum"
+    case $fedora_release in
+        f41|f43) FEDORA_PREINSTALLED="$FEDORA_PREINSTALLED dnf-yum" ;;
+    esac
     echo "$DNF install $FEDORA_PREINSTALLED"
     $DNF install $FEDORA_PREINSTALLED || { echo "Failed to download rootfs, aborting." ; return 1; }