Classic packages, done via stable install type, is no longer supported on later versions of Ubuntu, Debian, and Red Hat variants. If the bootstrap script is run with stable type on those systems, log an error and exit.

This commit is contained in:
Gareth J. Greenaway 2022-12-14 11:11:10 -08:00 committed by Pedro Algarvio
parent 97b656bdd6
commit 59ffb10a71

View file

@ -1829,6 +1829,24 @@ else
fi
fi
i# Red Hat variants after 9.x not supported by stable type
if [ "$(echo "${DISTRO_NAME_L}" | grep -E '(centos|red_hat|scientific|almalinux|rocky)')" != "" ] && [ "$ITYPE" = "stable" ] && [ "$DISTRO_MAJOR_VERSION" -ge 9 ]; then
echoerror "${DISTRO_NAME} ${DISTRO_VERSION} not supported by stable type, use type onedir."
exit 1
fi
# Debian after 11.x not supported by stable type
if [ "$(echo "${DISTRO_NAME_L}" | grep -E '(debian)')" != "" ] && [ "$ITYPE" = "stable" ] && [ "$DISTRO_MAJOR_VERSION" -ge 11 ]; then
echoerror "${DISTRO_NAME} ${DISTRO_VERSION} not supported by stable type, use type onedir."
exit 1
fi
# Ubuntu after 22.x not supported by stable type
if [ "$(echo "${DISTRO_NAME_L}" | grep -E '(ubuntu)')" != "" ] && [ "$ITYPE" = "stable" ] && [ "$DISTRO_MAJOR_VERSION" -ge 22 ]; then
echoerror "${DISTRO_NAME} ${DISTRO_VERSION} not supported by stable type, use type onedir."
exit 1
fi
# For Ubuntu derivatives, pretend to be their Ubuntu base version
__ubuntu_derivatives_translation