From 3d564545ec082cdd1c3c0f1e54ca44c45b9cc386 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 21 Jul 2014 01:33:00 -0400 Subject: installers/pc: Check only CPU compatibility --- diff --git a/installers/pc.sh b/installers/pc.sh index 586654a..cfbb4fa 100644 --- a/installers/pc.sh +++ b/installers/pc.sh @@ -153,13 +153,17 @@ check_arch_compat() local install_arch="${1}" local host_arch="${2}" local arches= + local install_cpu= + local host_cpu= if [ "x${install_arch}" = "x${host_arch}" ]; then return 0 fi arches="$(printf ' %s ' ${ARCHES})" - if [ "x${arches#* ${host_arch} * ${install_arch} }" = "x${arches}" ] + install_cpu="${install_arch%%-*}" + host_cpu="${host_arch%%-*}" + if [ "x${arches#* ${host_cpu} * ${install_cpu} }" = "x${arches}" ] then error 2 'Cannot install a system of architecture %s on %s %s' \ "${host_arch}" 'a system of architecture' \ -- cgit v0.9.1