Skip to content

Commit

Permalink
Add support for CloudLinux, which is based on CentOS
Browse files Browse the repository at this point in the history
  • Loading branch information
stormi committed Aug 2, 2022
1 parent 5db43c5 commit 2961851
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mk/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ select_pkgs_rhel()
rhel6|centos6|oracle6|scientific6|neokylin5|neokylin6|asianux4|turbo12)
# No additional kernel package
;;
rhel7|centos7|oracle7|scientific7|neokylin7)
rhel7|centos7|oracle7|scientific7|neokylin7|cloudlinux7)
# No additional kernel package
;;
rhel8|oracle8|centos8|rocky8)
rhel8|oracle8|centos8|rocky8|cloudlinux8)
# No additional kernel package
;;
rhel3|fedora*)
Expand Down Expand Up @@ -517,6 +517,7 @@ install_coreos()
case "${os_distro}" in
rhel|centos|oracle|fedora|rocky) select_pkgs_rhel ;;
scientific|neokylin|asianux|turbo) select_pkgs_rhel ;;
cloudlinux) select_pkgs_rhel ;;
sles|"suse linux") select_pkgs_sles ;;
debian|ubuntu|linx|yinhe|Gooroom) select_pkgs_debian ;;
xe-ddk|xe-sdk) select_pkgs_xe ;;
Expand Down
7 changes: 7 additions & 0 deletions mk/xe-linux-distribution
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ identify_redhat()
# distro=rocky
# Rocky Linux release 8.3

# distro=cloudlinux
# CloudLinux Server release 6.10 (Vladimir Lyakhov)
# CloudLinux Linux release 6.9
# CloudLinux release 7.7 (Valery Bykovsky)

# distro=scientific
# Scientific Linux release 6.5 (Carbon)

Expand Down Expand Up @@ -157,6 +162,8 @@ identify_redhat()
-e 's/^CentOS Linux release \([0-9]*\)\.\([0-9]*\).*$/distro=centos;major=\1;minor=\2/gp;' \
-e 's/^CentOS Stream release \([0-9]*\).*$/distro=centos;major=\1/gp;' \
-e 's/^Rocky Linux release \([0-9]*\)\.\([0-9]*\).*$/distro=rocky;major=\1;minor=\2/gp;' \
-e 's/^CloudLinux\( Linux|Server\)\? release \([0-9]*\)\.\([0-9]*\)\(\.[0-9]*\)\? (.*)/distro=cloudlinux;major=\2;minor=\1/gp;' \
-e 's/^CloudLinux release \([0-9]*\)\.\([0-9]*\)\(\.[0-9]*\)\? (.*)/distro=cloudlinux;major=\1;minor=\2/gp;' \
-e 's/^Enterprise Linux Enterprise Linux .* release \([0-9]*\)\.\([0-9]*\) (.*)$/distro=oracle;major=\1;minor=\2;/gp;' \
-e 's/^Enterprise Linux Enterprise Linux .* release \([0-9]*\) (.*)$/distro=oracle;major=\1/gp;' \
-e 's/^Oracle Linux Server release \([0-9]*\)\.\([0-9]*\)$/distro=oracle;major=\1;minor=\2/gp;' \
Expand Down

0 comments on commit 2961851

Please sign in to comment.