Created
July 17, 2019 09:34
-
-
Save flexiondotorg/4534b257611f3626f836b1a115cdf203 to your computer and use it in GitHub Desktop.
Pre-seed snaps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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