Certain Stream packages have to be replaced by their Rocky Linux equivalents.

This commit is contained in:
Peter Ajamian 2021-11-24 00:21:41 +13:00
parent 6fb8cb8dd1
commit f28f6daa0e

View File

@ -133,9 +133,18 @@ stream_repos_pkgs=(
[rocky-repos]=centos-stream-repos
[epel-release]=epel-next-release
)
# Prefix to add to CentOS stream repo names when renaming them.
stream_prefix=stream-
# Always replace these stream packages with their Rocky Linux equivalents.
stream_always_replace=(
fwupdate\*
grub2-\*
kernel
kernel-\*
)
unset CDPATH
exit_message() {
@ -905,6 +914,12 @@ EOF
errmsg \
$'Failed to disable CentOS Stream repos, please check and disable manually.\n'
if (( ${#stream_always_replace[@]} )) &&
[[ $(saferpm -qa "${stream_always_replace[@]}") ]]; then
safednf -y distro-sync "${stream_always_replace[@]}" ||
exit_message "Error during distro-sync."
fi
infomsg $'\nCentOS Stream Migration Notes:\n\n'
cat <<EOF
Because CentOS Stream leads RockyLinux by the next point release many packages