Bail on Katello systems.

Katello breaks EL systems to the point where migrate2rocky can't properly
migrate them and any attempt to do so causes major corruption.  This prevents
migrate2rocky from running on Katello systems.
This commit is contained in:
Peter Ajamian 2021-06-05 11:51:02 +12:00
parent 3dbad4d658
commit d3070e9493

View File

@ -103,6 +103,12 @@ pkg_ver() (
return 0 return 0
) )
pre_check () {
if [[ -e /etc/rhsm/ca/katello-server-ca.pem ]]; then
exit_message "Migration from Katello-modified systems is not supported by migrate2rocky."
fi
}
# All of the binaries used by this script are available in a EL8 minimal install # All of the binaries used by this script are available in a EL8 minimal install
# and are in /bin, so we should not encounter a system where the script doesn't # and are in /bin, so we should not encounter a system where the script doesn't
# work unless it's severly broken. This is just a simple check that will cause # work unless it's severly broken. This is just a simple check that will cause