From: Thierry Parmentelat Date: Fri, 21 Nov 2025 09:34:22 +0000 (+0100) Subject: dnf-yum no longer a thing in f43 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=896cfec17a0e6c618149f48ef1fb755b74675ced;p=build.git dnf-yum no longer a thing in f43 --- diff --git a/lbuild-initvm.sh b/lbuild-initvm.sh index 5394cd81..dd9ff181 100755 --- a/lbuild-initvm.sh +++ b/lbuild-initvm.sh @@ -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; }