@@ -26,13 +26,17 @@ BRANDING_PKGS=("centos-backgrounds" "centos-logos" "centos-indexhtml" \
26
26
" oracle-logos-ipa" " oracle-logos-httpd" \
27
27
" oracle-epel-release-el8" \
28
28
" redhat-backgrounds" " redhat-logos" " redhat-indexhtml" \
29
- " redhat-logos-ipa" " redhat-logos-httpd" )
29
+ " redhat-logos-ipa" " redhat-logos-httpd" \
30
+ " rocky-backgrounds" " rocky-logos" " rocky-indexhtml" \
31
+ " rocky-logos-ipa" " rocky-logos-httpd" )
30
32
31
33
REMOVE_PKGS=(" centos-linux-release" " centos-gpg-keys" " centos-linux-repos" \
32
34
" libreport-plugin-rhtsupport" " libreport-rhel" " insights-client" \
33
35
" libreport-rhel-anaconda-bugzilla" " libreport-rhel-bugzilla" \
34
36
" oraclelinux-release" " oraclelinux-release-el8" \
35
- " redhat-release" " redhat-release-eula" )
37
+ " redhat-release" " redhat-release-eula" \
38
+ " rocky-release" " rocky-gpg-keys" " rocky-repos" \
39
+ " rocky-obsolete-packages" )
36
40
37
41
setup_log_files () {
38
42
exec > >( tee /var/log/almalinux-deploy.log)
@@ -213,8 +217,8 @@ assert_supported_system() {
213
217
report_step_error " Check EL${os_version} is supported"
214
218
exit 1
215
219
fi
216
- if [[ ${os_type} != ' centos' && ${os_type} != ' almalinux' && \
217
- ${os_type} != ' ol ' && ${os_type} != ' rhel ' ]]; then
220
+ os_types=( " centos" " almalinux" " ol " " rhel " " rocky " )
221
+ if [[ ! " ${os_types[*]} " =~ ${os_type} ]]; then
218
222
report_step_error " Check ${os_type} operating system is supported"
219
223
exit 1
220
224
fi
@@ -452,7 +456,7 @@ replace_brand_packages() {
452
456
;;
453
457
* )
454
458
# shellcheck disable=SC2001
455
- alma_pkg=" $( echo " ${pkg_name} " | sed ' s#centos\|oracle\|redhat#almalinux#' ) "
459
+ alma_pkg=" $( echo " ${pkg_name} " | sed ' s#centos\|oracle\|redhat\|rocky #almalinux#' ) "
456
460
;;
457
461
esac
458
462
alma_pkgs+=(" ${alma_pkg} " )
@@ -805,7 +809,7 @@ main() {
805
809
assert_compatible_os_version " ${os_version} " " ${release_path} "
806
810
807
811
case " ${os_type} " in
808
- almalinux|centos|ol|rhel)
812
+ almalinux|centos|ol|rhel|rocky )
809
813
backup_issue
810
814
migrate_from_centos " ${release_path} "
811
815
;;
0 commit comments