diff --git a/elements/centos7/root.d/10-centos7-cloud-image b/elements/centos7/root.d/10-centos7-cloud-image index 041b3321..57a8c823 100755 --- a/elements/centos7/root.d/10-centos7-cloud-image +++ b/elements/centos7/root.d/10-centos7-cloud-image @@ -11,6 +11,9 @@ set -o pipefail if [ 'amd64' = "$ARCH" ] ; then ARCH="x86_64" +else + echo 'centos7 root element only support the amd64 $ARCH value.' + exit 1 fi DIB_LOCAL_IMAGE=${DIB_LOCAL_IMAGE:-} diff --git a/elements/rhel7/root.d/10-rhel7-cloud-image b/elements/rhel7/root.d/10-rhel7-cloud-image index e4fc1122..87c082ec 100755 --- a/elements/rhel7/root.d/10-rhel7-cloud-image +++ b/elements/rhel7/root.d/10-rhel7-cloud-image @@ -11,6 +11,9 @@ set -o pipefail if [ 'amd64' = "$ARCH" ] ; then ARCH="x86_64" +else + echo 'rhel7 root element only support the amd64 $ARCH value.' + exit 1 fi DIB_LOCAL_IMAGE=${DIB_LOCAL_IMAGE:-""}