@@ -399,7 +399,7 @@ function _ensure_lsb_release {
399399 elif [[ -x $( command -v zypper 2> /dev/null) ]]; then
400400 sudo zypper -n install lsb-release
401401 elif [[ -x $( command -v dnf 2> /dev/null) ]]; then
402- sudo dnf install -y redhat-lsb-core || sudo dnf install -y openeuler-lsb
402+ sudo dnf install -y redhat-lsb-core
403403 else
404404 die $LINENO " Unable to find or auto-install lsb_release"
405405 fi
@@ -471,10 +471,6 @@ function GetDistro {
471471 # Drop the . release as we assume it's compatible
472472 # XXX re-evaluate when we get RHEL10
473473 DISTRO=" rhel${os_RELEASE:: 1} "
474- elif [[ " $os_VENDOR " =~ (openEuler) ]]; then
475- # The DISTRO here is `openEuler-20.03`. While, actually only openEuler
476- # 20.03 LTS SP2 is fully tested. Other SP version maybe have bugs.
477- DISTRO=" openEuler-$os_RELEASE "
478474 else
479475 # We can't make a good choice here. Setting a sensible DISTRO
480476 # is part of the problem, but not the major issue -- we really
@@ -526,7 +522,6 @@ function is_fedora {
526522 fi
527523
528524 [ " $os_VENDOR " = " Fedora" ] || [ " $os_VENDOR " = " Red Hat" ] || \
529- [ " $os_VENDOR " = " openEuler" ] || \
530525 [ " $os_VENDOR " = " RedHatEnterpriseServer" ] || \
531526 [ " $os_VENDOR " = " RedHatEnterprise" ] || \
532527 [ " $os_VENDOR " = " CentOS" ] || [ " $os_VENDOR " = " CentOSStream" ] || \
@@ -576,12 +571,6 @@ function is_ubuntu {
576571 [ " $os_PACKAGE " = " deb" ]
577572}
578573
579- function is_openeuler {
580- if [[ -z " $os_PACKAGE " ]]; then
581- GetOSVersion
582- fi
583- [ " $os_VENDOR " = " openEuler" ]
584- }
585574# Git Functions
586575# =============
587576
0 commit comments