diff options
Diffstat (limited to 'installers')
-rw-r--r-- | installers/pc.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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' \ |