Unverified Commit 76f3e38d authored by Konstantinos Tsakalozos's avatar Konstantinos Tsakalozos Committed by GitHub
Browse files

Call dpkg from the snap (#208)

parent cb3c0f69
......@@ -37,7 +37,7 @@ skip_opt_in_config() {
arch() {
# Return the architecture we are on
local ARCH="${KUBE_ARCH:-`dpkg --print-architecture`}"
local ARCH="${KUBE_ARCH:-`$SNAP/usr/bin/dpkg --print-architecture`}"
if [ "$ARCH" = "ppc64el" ]; then
ARCH="ppc64le"
elif [ "$ARCH" = "armhf" ]; then
......
......@@ -6,7 +6,7 @@ export PATH="$SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH"
export LD_LIBRARY_PATH="$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu"
source $SNAP/actions/common/utils.sh
ARCH=$(dpkg --print-architecture)
ARCH=$(arch)
if ! [ "${ARCH}" = "amd64" ]
then
echo "Istio is not available for ${ARCH}"
......
......@@ -114,6 +114,7 @@ parts:
- zfsutils-linux
- socat
- iproute2
- dpkg
source: .
override-build: |
set -eu
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment