From 97ca56a460678fdcb75e52954fdbb31b533f0e2f Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 4 Sep 2020 07:44:37 +0200 Subject: [PATCH] build-devtoolbox: Fix broken Fedora 33 image See https://github.com/containers/toolbox/issues/552 --- build-devtoolbox | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5