mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 15:47:14 +01:00
Merge pull request #9608 from prb112/OCPBUGS-54319
OCPBUGS-54319: oci-eval-user-data uses dmidecode which is not supported on ppc64le or s390x
This commit is contained in:
@@ -2,6 +2,13 @@
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
# dmidecode is not available on ppc64le/s390x
|
||||
if [ "$(arch)" == "ppc64le" ] || [ "$(arch)" == "s390x" ]
|
||||
then
|
||||
echo "Non OCI architecture... exiting early"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
chassis_asset_tag="$(dmidecode --string chassis-asset-tag)"
|
||||
if [ "${chassis_asset_tag}" != "OracleCloud.com" ]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user