Skip to content

Commit

Permalink
Make sure to use dnf flags for epel
Browse files Browse the repository at this point in the history
Signed-off-by: Anders F Björklund <[email protected]>
  • Loading branch information
afbjorklund committed Jan 8, 2025
1 parent 35e2efd commit dfeafa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cidata/cidata.TEMPLATE.d/boot/30-install-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ elif command -v dnf >/dev/null 2>&1; then
fi
if [ -n "${pkgs}" ] || [ -n "${extrapkgs}" ]; then
dnf_install_flags="-y --setopt=install_weak_deps=False"
epel_install_flags="${dnf_install_flags}"
epel_install_flags=""
if grep -q "Oracle Linux Server release 8" /etc/system-release; then
# repo flag instead of enable repo to reduce metadata syncing on slow Oracle repos
dnf_install_flags="${dnf_install_flags} --repo ol8_baseos_latest --repo ol8_codeready_builder"
Expand All @@ -102,7 +102,7 @@ elif command -v dnf >/dev/null 2>&1; then
fi
if [ -n "${extrapkgs}" ]; then
# shellcheck disable=SC2086
dnf install ${epel_install_flags} ${extrapkgs}
dnf install ${dnf_install_flags} ${epel_install_flags} ${extrapkgs}
fi
fi
if [ "${LIMA_CIDATA_CONTAINERD_USER}" = 1 ] && [ ! -e /usr/bin/fusermount ]; then
Expand Down

0 comments on commit dfeafa4

Please sign in to comment.