[util-iso.sh] snapd seed needs to be run on host

This commit is contained in:
Philip Müller 2019-06-13 22:12:00 +02:00
parent 07742ab6e4
commit 1dc0cc28ea

View file

@ -271,9 +271,9 @@ function seed_snaps() {
mv -v $1/*.assert $1/${SEED_DIR}/assertions/ mv -v $1/*.assert $1/${SEED_DIR}/assertions/
# Create model and account assertions # Create model and account assertions
# Runs inside the container. # Runs outside the container.
chroot-run $1 snap known model > /tmp/generic.model snap known model > /tmp/generic.model
chroot-run $1 snap prepare-image --arch amd64 --classic /tmp/generic.model "${SEED_LIST}" "${SEED_DIR}" snap prepare-image --arch amd64 --classic /tmp/generic.model "${SEED_LIST}" "$1/${SEED_DIR}"
snap_boot_args="'apparmor=1' 'security=apparmor'" snap_boot_args="'apparmor=1' 'security=apparmor'"
else else