diff --git a/usr/bin/archboot-x86_64-release.sh b/usr/bin/archboot-x86_64-release.sh index 318271f84..cddb775d4 100755 --- a/usr/bin/archboot-x86_64-release.sh +++ b/usr/bin/archboot-x86_64-release.sh @@ -17,8 +17,13 @@ usage () { ### check for root if ! [[ ${UID} -eq 0 ]]; then - echo "ERROR: Please run as root user!" - exit 1 + echo "ERROR: Please run as root user!" + exit 1 +fi +### check for x86_64 +if ! [[ "$(uname -m)" == "x86_64" ]]; then + echo "ERROR: Pleae run on x86_64 hardware." + exit 1 fi echo "Start release creation in $1 ..." mkdir -p $1