Added Oracle Linux distribution support

Enabled devstack to support oracle Linux Server

Change-Id: I1749cd3c7756a9903d2a0b0ab19606f87a4937d4
This commit is contained in:
anju Tiwari 2014-07-15 18:11:54 +05:30 committed by Ian Wienand
parent 5e93727a23
commit 6c639c9dd7

View File

@ -435,7 +435,9 @@ function GetDistro {
else else
DISTRO="sle${os_RELEASE}sp${os_UPDATE}" DISTRO="sle${os_RELEASE}sp${os_UPDATE}"
fi fi
elif [[ "$os_VENDOR" =~ (Red Hat) || "$os_VENDOR" =~ (CentOS) ]]; then elif [[ "$os_VENDOR" =~ (Red Hat) || \
"$os_VENDOR" =~ (CentOS) || \
"$os_VENDOR" =~ (OracleServer) ]]; then
# Drop the . release as we assume it's compatible # Drop the . release as we assume it's compatible
DISTRO="rhel${os_RELEASE::1}" DISTRO="rhel${os_RELEASE::1}"
elif [[ "$os_VENDOR" =~ (XenServer) ]]; then elif [[ "$os_VENDOR" =~ (XenServer) ]]; then
@ -463,7 +465,8 @@ function is_fedora {
GetOSVersion GetOSVersion
fi fi
[ "$os_VENDOR" = "Fedora" ] || [ "$os_VENDOR" = "Red Hat" ] || [ "$os_VENDOR" = "CentOS" ] [ "$os_VENDOR" = "Fedora" ] || [ "$os_VENDOR" = "Red Hat" ] || \
[ "$os_VENDOR" = "CentOS" ] || [ "$os_VENDOR" = "OracleServer" ]
} }