From 85ae1d4f554f69285f07ca57a58b6643297e28a7 Mon Sep 17 00:00:00 2001 From: Matthew Richardson Date: Mon, 4 Jul 2016 17:23:02 +0100 Subject: [PATCH] Set repo_arch for raspberry pi installs. --- bootstrap-salt.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 2770945..c246f91 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -2714,6 +2714,8 @@ install_debian_7_deps() { if [ $_DISABLE_REPOS -eq $BS_FALSE ]; then if [ "$CPU_ARCH_L" = "amd64" ] || [ "$CPU_ARCH_L" = "x86_64" ]; then repo_arch="amd64" + elif [ "$CPU_ARCH_L" = "armv7l" ]; then + repo_arch="armhf" elif [ "$CPU_ARCH_L" = "i386" ] || [ "$CPU_ARCH_L" = "i686" ]; then echoerror "repo.saltstack.com likely doesn't have 32-bit packages for Debian (yet?)" repo_arch="i386" @@ -2790,6 +2792,8 @@ install_debian_8_deps() { if [ $_DISABLE_REPOS -eq $BS_FALSE ]; then if [ "$CPU_ARCH_L" = "amd64" ] || [ "$CPU_ARCH_L" = "x86_64" ]; then repo_arch="amd64" + elif [ "$CPU_ARCH_L" = "armv7l" ]; then + repo_arch="armhf" elif [ "$CPU_ARCH_L" = "i386" ] || [ "$CPU_ARCH_L" = "i686" ]; then echoerror "repo.saltstack.com likely doesn't have 32-bit packages for Debian (yet?)" repo_arch="i386"