mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-11-25 06:31:24 +00:00
Certain Stream packages have to be replaced by their Rocky Linux equivalents.
This commit is contained in:
parent
6fb8cb8dd1
commit
f28f6daa0e
@ -133,9 +133,18 @@ stream_repos_pkgs=(
|
|||||||
[rocky-repos]=centos-stream-repos
|
[rocky-repos]=centos-stream-repos
|
||||||
[epel-release]=epel-next-release
|
[epel-release]=epel-next-release
|
||||||
)
|
)
|
||||||
|
|
||||||
# Prefix to add to CentOS stream repo names when renaming them.
|
# Prefix to add to CentOS stream repo names when renaming them.
|
||||||
stream_prefix=stream-
|
stream_prefix=stream-
|
||||||
|
|
||||||
|
# Always replace these stream packages with their Rocky Linux equivalents.
|
||||||
|
stream_always_replace=(
|
||||||
|
fwupdate\*
|
||||||
|
grub2-\*
|
||||||
|
kernel
|
||||||
|
kernel-\*
|
||||||
|
)
|
||||||
|
|
||||||
unset CDPATH
|
unset CDPATH
|
||||||
|
|
||||||
exit_message() {
|
exit_message() {
|
||||||
@ -905,6 +914,12 @@ EOF
|
|||||||
errmsg \
|
errmsg \
|
||||||
$'Failed to disable CentOS Stream repos, please check and disable manually.\n'
|
$'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'
|
infomsg $'\nCentOS Stream Migration Notes:\n\n'
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
Because CentOS Stream leads RockyLinux by the next point release many packages
|
Because CentOS Stream leads RockyLinux by the next point release many packages
|
||||||
|
Loading…
Reference in New Issue
Block a user