From f4312118cc04e75dd08130137476742016337b68 Mon Sep 17 00:00:00 2001 From: Ethan Hsieh Date: Thu, 8 Jul 2021 15:16:43 +0800 Subject: [PATCH] functions: download snap packages with correct architecture Have to set UBUNTU_STORE_ARCH when the architecture of host machine is different from target machine --- live-build/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-build/functions b/live-build/functions index d1be603b..99e3bd5b 100644 --- a/live-build/functions +++ b/live-build/functions @@ -548,7 +548,7 @@ _snap_preseed() { sh -c " set -x; cd \"$CHROOT_ROOT/var/lib/snapd/seed\"; - SNAPPY_STORE_NO_CDN=1 snap download \ + UBUNTU_STORE_ARCH=$ARCH SNAPPY_STORE_NO_CDN=1 snap download \ --cohort="${COHORT_KEY:-}" \ --channel=\"$CHANNEL\" \"$SNAP_NAME\"" || snap_download_failed=1 if [ $snap_download_failed = 1 ] ; then