From 79adf63842b016ccbf6d937d6bed012b73c2ed7e Mon Sep 17 00:00:00 2001 From: Michael Aldridge Date: Thu, 22 Jun 2017 16:16:13 -0700 Subject: [PATCH] Correctly detect musl host architecture This resolves #106 --- mklive.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mklive.sh.in b/mklive.sh.in index ed710f9..a69bf05 100644 --- a/mklive.sh.in +++ b/mklive.sh.in @@ -319,7 +319,7 @@ XBPS_REPOSITORY="$XBPS_REPOSITORY --repository=http://repo.voidlinux.eu/current ARCH=$(xbps-uhelper arch) # Set defaults -: ${BASE_ARCH:=$(uname -m)} +: ${BASE_ARCH:=$(xbps-uhelper arch 2>/dev/null || uname -m)} : ${XBPS_CACHEDIR:=-c $(pwd -P)/xbps-cachedir-${BASE_ARCH}} : ${XBPS_HOST_CACHEDIR:=-c $(pwd -P)/xbps-cachedir-${ARCH}} : ${KEYMAP:=us}