From a03e9e34ab6e9ee61d3b8f3a6890ac2717aea40e Mon Sep 17 00:00:00 2001 From: Cory Schwartz Date: Fri, 17 Dec 2021 17:30:23 -0800 Subject: [PATCH] reinstall snapd --- tools/packer/setup-snap.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/packer/setup-snap.sh b/tools/packer/setup-snap.sh index 7546023f2..f8f949816 100644 --- a/tools/packer/setup-snap.sh +++ b/tools/packer/setup-snap.sh @@ -10,7 +10,6 @@ set -x # Become root, if we aren't already. # Docker images will already be root. AMIs will have an SSH user account. -UID=$(id -u) if [ x$UID != x0 ] then printf -v cmd_str '%q ' "$0" "$@" @@ -23,6 +22,10 @@ MANAGED_FILES=( /etc/motd ) +# this is required on digitalocean, which does not have snap seeded correctly at this phase. +apt update +apt reinstall snapd + snap install lotus-filecoin snap alias lotus-filecoin.lotus lotus