From fde8147a72fdbd9cb703adee3a705931f38d517e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20M=C3=BCller?= Date: Thu, 13 Jun 2019 23:54:37 +0200 Subject: [PATCH] [util-iso.sh] update snap seed --- lib/util-iso.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/util-iso.sh b/lib/util-iso.sh index 69adca5..4ca4cc3 100644 --- a/lib/util-iso.sh +++ b/lib/util-iso.sh @@ -252,18 +252,15 @@ function seed_snaps() { mkdir -p "$1/${SEED_DIR}/assertions" SEED_LIST=() - # Download the published snaps and their related assert files - # Runs inside the container + # Update SEED_LIST for SEED_SNAP in ${SEED_SNAPS}; do - SEED_LIST+=("--snap=${SEED_SNAP}=${SEED_CHANNEL}") + SEED_LIST+=(--snap=${SEED_SNAP}=${SEED_CHANNEL}) done - msg2 "Snaps: ${SEED_LIST}" - # Create model and account assertions # Runs outside the container. snap known model > /tmp/generic.model - snap prepare-image --arch amd64 --classic /tmp/generic.model "${SEED_LIST}" "$1" + snap prepare-image --arch amd64 --classic /tmp/generic.model "${SEED_LIST[@]}" "$1" snap_boot_args="'apparmor=1' 'security=apparmor'" else