diff --git a/README.rst b/README.rst index 3951187..8ea0854 100644 --- a/README.rst +++ b/README.rst @@ -264,7 +264,7 @@ SUSE family - openSUSE Leap 42.2/42.3 - openSUSE Tumbleweed 2015 -- SUSE Linux Enterprise Server 11 SP1/11 SP2/11 SP3/12 +- SUSE Linux Enterprise Server 11 SP4, 12 SP2 Ubuntu and derivatives diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index bb3fd09..a3db5f1 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -1520,14 +1520,18 @@ __check_end_of_life_versions() { suse) # SuSE versions not supported # - # < 11 SP2 + # < 11 SP4 + # < 12 SP2 SUSE_PATCHLEVEL=$(awk '/PATCHLEVEL/ {print $3}' /etc/SuSE-release ) if [ "${SUSE_PATCHLEVEL}" = "" ]; then SUSE_PATCHLEVEL="00" fi - if ([ "$DISTRO_MAJOR_VERSION" -eq 11 ] && [ "$SUSE_PATCHLEVEL" -lt 02 ]) || [ "$DISTRO_MAJOR_VERSION" -lt 11 ]; then - echoerror "Versions lower than SuSE 11 SP2 are not supported." + if [ "$DISTRO_MAJOR_VERSION" -lt 11 ] || \ + ([ "$DISTRO_MAJOR_VERSION" -eq 11 ] && [ "$SUSE_PATCHLEVEL" -lt 04 ]) || \ + ([ "$DISTRO_MAJOR_VERSION" -eq 12 ] && [ "$SUSE_PATCHLEVEL" -lt 02 ]); then + echoerror "Versions lower than SuSE 11 SP4 or 12 SP2 are not supported." echoerror "Please consider upgrading to the next stable" + echoerror " https://www.suse.com/lifecycle/" exit 1 fi ;;