Merge "simplify ARCH param for rhel/centos param can be x86_64 and amd64"
This commit is contained in:
commit
be1e563524
@ -9,10 +9,10 @@ set -o pipefail
|
||||
[ -n "$ARCH" ]
|
||||
[ -n "$TARGET_ROOT" ]
|
||||
|
||||
if [ 'amd64' = "$ARCH" ] ; then
|
||||
if [[ "amd64 x86_64" =~ "$ARCH" ]]; then
|
||||
ARCH="x86_64"
|
||||
else
|
||||
echo 'centos7 root element only support the amd64 $ARCH value.'
|
||||
echo 'centos7 root element only support the x86_64 $ARCH value.'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -9,10 +9,10 @@ set -o pipefail
|
||||
[ -n "$ARCH" ]
|
||||
[ -n "$TARGET_ROOT" ]
|
||||
|
||||
if [ 'amd64' = "$ARCH" ] ; then
|
||||
if [[ "amd64 x86_64" =~ "$ARCH" ]]; then
|
||||
ARCH="x86_64"
|
||||
else
|
||||
echo 'rhel7 root element only support the amd64 $ARCH value.'
|
||||
echo 'rhel7 root element only support the x86_64 $ARCH value.'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -9,7 +9,7 @@ set -o pipefail
|
||||
if [ "i386" = "$ARCH" ]; then
|
||||
basearch=i386
|
||||
arch=i686
|
||||
elif [ "amd64" = "$ARCH" ]; then
|
||||
elif [[ "amd64 x86_64" =~ "$ARCH" ]]; then
|
||||
basearch=x86_64
|
||||
arch=x86_64
|
||||
elif [[ "$ARCH" = "ppc64" ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user