dnf-yum no longer a thing in f43
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 21 Nov 2025 09:34:22 +0000 (10:34 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 21 Nov 2025 09:34:38 +0000 (10:34 +0100)
lbuild-initvm.sh

index 5394cd8..dd9ff18 100755 (executable)
@@ -44,8 +44,9 @@ VIF_GUEST=eth0
 
 ##########
 FEDORA_MIRROR="http://mirror.onelab.eu/"
+# dnf-yum no longer exists in recent fedora
 FEDORA_MIRROR_KEYS="http://mirror.onelab.eu/keys/"
-FEDORA_PREINSTALLED="dnf dnf-yum passwd rsyslog vim-minimal dhclient chkconfig rootfiles policycoreutils openssh-server openssh-clients"
+FEDORA_PREINSTALLED="dnf passwd rsyslog vim-minimal dhclient chkconfig rootfiles policycoreutils openssh-server openssh-clients"
 DEBIAN_PREINSTALLED="openssh-server openssh-client"
 
 ########## networking utilities
@@ -252,6 +253,8 @@ function fedora_download() {
     # 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 --no-best --nogpgcheck -y --releasever=${fedora_release}"
+    # dnf-yum no longer exists in recent fedora
+    [[ $fedora_release == "f41" ]] && FEDORA_PREINSTALLED="$FEDORA_PREINSTALLED dnf-yum"
     echo "$DNF install $FEDORA_PREINSTALLED"
     $DNF install $FEDORA_PREINSTALLED || { echo "Failed to download rootfs, aborting." ; return 1; }