Lxd one-liners

From UVOO Tech Wiki
Revision as of 15:19, 2 June 2021 by Busk (talk | contribs)
Jump to navigation Jump to search

Delete all snaps

host=myhost
lxc info $host | awk '{print $1}' | grep snap | xargs -i lxc delete $host/{}
lxc list --format=json | jq --raw-output '.[].name' | xargs -i lxc config set {} boot.autostart false