Remove /etc/yum.repos.d/ubi.repo

in ubi9 beta image, /etc/yum.repos.d/ubi.repo is empty so
disabled it via dnf fails and it breaks the container
build.

Removing this file completely fixes the issue.

Closes-Bug: #1956319

Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
Change-Id: I0cf3313e7bfb30f0e9cae1f4b8ce265a1e8996d2
(cherry picked from commit 534f7f7584)
This commit is contained in:
Chandan Kumar (raukadah) 2022-01-04 15:40:10 +05:30 committed by chandan kumar
parent 246e19db14
commit a5471f8c94
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
tcib_actions:
- run: if [ -f "/etc/yum.repos.d/ubi.repo" ]; then dnf config-manager --set-disabled "ubi*" && dnf clean all && rm -rf /var/cache/dnf; fi
- run: if [ -f "/etc/yum.repos.d/ubi.repo" ]; then rm -f /etc/yum.repos.d/ubi.repo && dnf clean all && rm -rf /var/cache/dnf; fi
- run: >-
dnf install -y crudini &&
crudini --del /etc/dnf/dnf.conf main override_install_langs &&