--- a/arch-detect.patch +++ b/arch-detect.patch @@ -5,7 +5,7 @@ elif [ -e $DEBOOTSTRAP_DIR/arch ]; then HOST_ARCH=`cat $DEBOOTSTRAP_DIR/arch` +elif in_path pacman; then -+ CARCH="$(. /etc/makepkg.conf && echo $CARCH)" ++ CARCH="$(bash -c '. /etc/makepkg.conf && echo $CARCH')" + case "$CARCH" in + "i686") HOST_ARCH="i386" ;; + "x86_64") HOST_ARCH="amd64" ;;