packer: add a workaround for broken podman from 9.1

Podman doesn't work when installed from 9.1 repositories on 9.0 image.

I found that upgrading the whole system helps. Sadly, that requires removing
python-unversioned-command for some reason.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2022-11-16 16:24:57 +01:00 committed by Ondřej Budai
parent 5669e05264
commit 422281698a

View file

@ -22,6 +22,12 @@ elif [ -n "$GIT_BRANCH" ]; then
fi
if [ "$ON_JENKINS" = false ]; then
# work around not working podman from 9.1 on a 9.0 image
# see https://bugzilla.redhat.com/show_bug.cgi?id=2143282
# TODO: Remove me when the bug is fixed or we switch to 9.1
sudo dnf remove -y python-unversioned-command
sudo dnf upgrade -y
sudo dnf install -y podman jq
fi