From: Martin Pitt Date: Fri, 4 Sep 2020 05:44:37 +0000 (+0200) Subject: build-devtoolbox: Fix broken Fedora 33 image X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=97ca56a460678fdcb75e52954fdbb31b533f0e2f;p=bin.git build-devtoolbox: Fix broken Fedora 33 image See https://github.com/containers/toolbox/issues/552 --- diff --git a/build-devtoolbox b/build-devtoolbox index 39f05c7..7685fb3 100755 --- a/build-devtoolbox +++ b/build-devtoolbox @@ -19,6 +19,12 @@ toolbox run -c "$NAME" sh -exc ' echo "${ID}-${VERSION_ID}" | sudo tee /etc/hostname sudo hostname -F /etc/hostname +# https://github.com/containers/toolbox/issues/552 +if [ "$VERSION_ID" = 33 ]; then + sudo rm -f /etc/yum.repos.d/*rawhide* + sudo dnf config-manager --set-enabled fedora --set-enabled updates +fi + sudo dnf update -y # this just refuses to rpm -i normally