Skip to content

Instantly share code, notes, and snippets.

@flexiondotorg
Created July 17, 2019 09:34
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save flexiondotorg/4534b257611f3626f836b1a115cdf203 to your computer and use it in GitHub Desktop.
Save flexiondotorg/4534b257611f3626f836b1a115cdf203 to your computer and use it in GitHub Desktop.
Pre-seed snaps
#!/usr/bin/env bash
if [ -f build-settings.sh ]; then
source build-settings.sh
else
echo "ERROR! Could not source build-settings.sh."
exit 1
fi
SEED_DIR="/var/lib/snapd/seed"
SEED_DIR="$HOME/seed"
# Preseeded snaps should be downloaded from a versioned channel
# Only required on Ubuntu distros.
SEED_CHANNEL="stable/ubuntu-${REL_VER}"
snap known model > generic.model
snap prepare-image --arch amd64 --classic generic.model --snap=core18 --snap=gnome-3-28-1804 --snap=gtk-common-themes --snap=ubuntu-mate-welcome=${SEED_CHANNEL} --snap=snap-store "${SEED_DIR}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment