diskimage-builder/diskimage_builder/elements/centos-minimal/environment.d/11-yum-dnf.bash
Ian Wienand ddb2811255 Add environment switch for centos8 to use dnf
Set YUM to dnf for Centos 8; this matches similar done in
fedora-minimal.

Change-Id: I2b2c41a73e468fe9045ee5b7b812da66f20d8584
2019-10-03 00:22:18 +00:00

6 lines
78 B
Bash

if [ $DIB_RELEASE -ge 8 ]; then
export YUM=dnf
else
export YUM=yum
fi