Merge "Add environment switch for centos8 to use dnf"

This commit is contained in:
Zuul 2019-10-05 00:18:16 +00:00 committed by Gerrit Code Review
commit a33c643e43
2 changed files with 5 additions and 3 deletions

View File

@ -4,6 +4,3 @@ export DIB_RELEASE=${DIB_RELEASE:-7}
# by default, enable DHCP configuration of eth0 & eth1 in network # by default, enable DHCP configuration of eth0 & eth1 in network
# scripts. See yum-minimal for full details # scripts. See yum-minimal for full details
export DIB_YUM_MINIMAL_CREATE_INTERFACES=${DIB_YUM_MINIMAL_CREATE_INTERFACES:-1} export DIB_YUM_MINIMAL_CREATE_INTERFACES=${DIB_YUM_MINIMAL_CREATE_INTERFACES:-1}
# Useful for elements that work with fedora (dnf) & centos
export YUM=${YUM:-yum}

View File

@ -0,0 +1,5 @@
if [ $DIB_RELEASE -ge 8 ]; then
export YUM=dnf
else
export YUM=yum
fi