diff --git a/usr/bin/archboot-x86_64-iso.sh b/usr/bin/archboot-x86_64-iso.sh index 9b787b0de..7d7ed547b 100755 --- a/usr/bin/archboot-x86_64-iso.sh +++ b/usr/bin/archboot-x86_64-iso.sh @@ -2,6 +2,8 @@ # created by Tobias Powalowski _BASENAME="$(basename "${0}")" +_PRESET_DIR="/etc/archboot/presets" +_TARBALL_HELPER="/usr/bin/archboot-tarball-helper.sh" _SHIM_URL="https://kojipkgs.fedoraproject.org/packages/shim/15.4/5/x86_64" _SHIM_VERSION="shim-x64-15.4-5.x86_64.rpm" _SHIM32_VERSION="shim-ia32-15.4-5.x86_64.rpm" @@ -43,10 +45,6 @@ usage () { [[ -z "${1}" ]] && usage - -PRESET_DIR="/etc/archboot/presets" -TARBALL_HELPER="/usr/bin/archboot-tarball-helper.sh" - # change to english locale! export LANG="en_US" @@ -71,6 +69,12 @@ if ! [[ ${UID} -eq 0 ]]; then exit 1 fi +### check for aarch64 +if ! [[ "$(uname -m)" == "x86_64" ]]; then + echo "ERROR: Please run on x86_64 hardware." + exit 1 +fi + #set PRESET [[ -z "${_PRESET}" ]] && _PRESET="x86_64" _PRESET=""${_PRESET_DIR}"/"${_PRESET}""