Don't install weak dependencies on RHEL-based systems

Signed-off-by: Han Verstraete (OpenFaaS Ltd) <han@openfaas.com>
This commit is contained in:
Han Verstraete (OpenFaaS Ltd) 2025-05-20 17:49:26 +02:00 committed by Alex Ellis
parent e98c949019
commit f409e01aa6

View File

@ -38,7 +38,10 @@ install_required_packages() {
apt-get update -yq
apt-get install -yq curl runc bridge-utils iptables iptables-persistent
elif $(has_dnf); then
dnf install -y --allowerasing curl runc iptables-services bridge-utils which
dnf install -y \
--allowerasing \
--setopt=install_weak_deps=False \
curl runc iptables-services bridge-utils which
elif $(has_pacman); then
pacman -Syy
pacman -Sy curl runc bridge-utils