diskimage-builder/diskimage_builder/elements/simple-init/environment.d/15-simple-init-networkmanager

13 lines
522 B
Plaintext
Raw Normal View History

if [[ ${DISTRO_NAME} =~ (centos|fedora|rocky) ]]; 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" || ${DISTRO_NAME} == "rocky") && $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/Rocky 8"
exit 1
fi
fi