Skip to content

Instantly share code, notes, and snippets.

@imrehg
Last active August 13, 2019 09:00
Show Gist options
  • Save imrehg/6386b02f198858aca82cbcfcd133bd88 to your computer and use it in GitHub Desktop.
Save imrehg/6386b02f198858aca82cbcfcd133bd88 to your computer and use it in GitHub Desktop.
quickfix.sh
systemctl stop resin-supervisor
balena rm -f $(balena ps -a -q) || true
balena tag $(balena images | grep registry2 | awk '{print $1}') backup
balena rmi $(balena images | grep registry2 | awk '{print $1}')
systemctl restart resin-supervisor
while ! balena images | grep -q registry2 ; do echo "waiting on supervisor download, sleeping 5s" && sleep 5; done
echo "download finished, removing temporary image tags"
balena rmi backup
@xginn8
Copy link

xginn8 commented Aug 9, 2019

I recommend changing line 6 to:

while ! balena images | grep -q registry2 ; do echo "waiting on supervisor download" && sleep 5; done

ref: https://jel.ly.fish/d21d2a7e-3e5c-4e67-a26b-10240defd697

@imrehg
Copy link
Author

imrehg commented Aug 13, 2019

@xginn8 updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment