Skip to content

Commit

Permalink
fix: hack to load modulemd-tools for rhel 84
Browse files Browse the repository at this point in the history
  • Loading branch information
msdolbey committed Oct 28, 2024
1 parent 9e36911 commit f7900e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bundles/redhat8.4/bundle.sh.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,15 @@ subscription-manager repos --enable rhel-8-for-x86_64-baseos-eus-rpms
subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
subscription-manager repos --enable rhel-8-for-x86_64-appstream-rpms
yum --disablerepo=appstream-centos -y install gettext yum-utils createrepo dnf-utils
subscription-manager release --set=8.6
subscription-manager repos --enable rhel-8-for-x86_64-appstream-rpms
yum -y install gettext yum-utils createrepo dnf-utils modulemd-tools
yum clean all
TMP_DIR="$(mktemp -d repodata-XXXX)"
cp packages.txt "${TMP_DIR}"
pushd "${TMP_DIR}"
#shellcheck disable=SC2046,SC2062,SC2063,SC2035
subscription-manager release --set=8.4
repoquery --archlist=x86_64,noarch --resolve --requires --recursive --enablerepo=kubernetes,rhel-8-for-x86_64-baseos-eus-rpms,codeready-builder-for-rhel-8-x86_64-rpms,rhel-8-for-x86_64-appstream-rpms --disablerepo=appstream-centos $(< packages.txt) | grep -v *.i686 >> reqs.txt
sed -i 1d reqs.txt # we need to get rid of the first line
#shellcheck disable=SC2046
Expand Down

0 comments on commit f7900e4

Please sign in to comment.