summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-07-21 01:33:00 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-07-21 01:33:00 (EDT)
commit3d564545ec082cdd1c3c0f1e54ca44c45b9cc386 (patch)
tree8e4533bd3c2f3ea39073941bec5b459e026b64ff
parent4c945297c19ababe285cae6bf68540fa91508e2b (diff)
installers/pc: Check only CPU compatibility
-rw-r--r--installers/pc.sh6
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' \