367dfc9294
This patch adds support for CentOS 8 Stream [1] to the centos-minimal element. Users should set DIB_RELEASE=8-stream. [1] https://www.centos.org/stream/ Change-Id: Id0825de735ab957c10daf35fb3c641f850cc6847
12 lines
479 B
Text
12 lines
479 B
Text
if [[ ${DISTRO_NAME} =~ (centos|fedora) ]]; then
|
|
export DIB_SIMPLE_INIT_NETWORKMANAGER=${DIB_SIMPLE_INIT_NETWORKMANAGER:-1}
|
|
else
|
|
export DIB_SIMPLE_INIT_NETWORKMANAGER=${DIB_SIMPLE_INIT_NETWORKMANAGER:-0}
|
|
fi
|
|
|
|
if [[ ${DISTRO_NAME} == "centos" && $DIB_RELEASE > 7 ]] || [[ ${DISTRO_NAME} == "fedora" ]]; then
|
|
if [[ $DIB_SIMPLE_INIT_NETWORKMANAGER == 0 ]]; then
|
|
echo "simple-init only supports NetworkManager mode on Fedora and CentOS 8"
|
|
exit 1
|
|
fi
|
|
fi
|