
Depends-On: https://review.opendev.org/c/opendev/glean/+/953320 Depends-On: https://review.opendev.org/c/opendev/glean/+/953276 Change-Id: Ida2d4f9af20229d648007995fa20a1242751651d
13 lines
550 B
Plaintext
13 lines
550 B
Plaintext
if [[ ${DISTRO_NAME} =~ (almalinux|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} == "almalinux" || ${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 AlmaLinux/CentOS/Rocky 8/9/10"
|
|
exit 1
|
|
fi
|
|
fi
|