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
DISTRO="sle${os_RELEASE}sp${os_UPDATE}"
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
DISTRO="rhel${os_RELEASE::1}"
elif [[ "$os_VENDOR" =~ (XenServer) ]]; then
@ -463,7 +465,8 @@ function is_fedora {
GetOSVersion
fi
[ "$os_VENDOR" = "Fedora" ] || [ "$os_VENDOR" = "Red Hat" ] || [ "$os_VENDOR" = "CentOS" ]
[ "$os_VENDOR" = "Fedora" ] || [ "$os_VENDOR" = "Red Hat" ] || \
[ "$os_VENDOR" = "CentOS" ] || [ "$os_VENDOR" = "OracleServer" ]
}