only check for qemu conf if host architecture is not aarch64

This commit is contained in:
Dan Johansen 2020-06-18 20:46:44 +02:00
parent 01dcb47cb4
commit ff6b690871
No known key found for this signature in database
GPG Key ID: 084A7FC0035B1D49
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@
# Set globals
TMPDIR=/var/tmp/manjaro-arm-installer
ARCH='aarch64'
CARCH=$(uname -m)
NSPAWN='systemd-nspawn -q --resolv-conf=copy-host --timezone=off -D'
# set colorscheme
@ -50,10 +51,12 @@ for i in "${DEPENDNECIES[@]}"; do
fi
done
if [[ "$CARCH" != "aarch64" ]]; then
if [ ! -f "/usr/lib/binfmt.d/qemu-static.conf" ]; then
echo "qemu-static.conf file is missing. Please install the relevant package."
exit 1
fi
fi
# Functions