Lxc disable autostart

From UVOO Tech Wiki
Revision as of 21:23, 14 May 2023 by Busk (talk | contribs) (Created page with "``` #!/bin/bash set -eu hosts=$(lxc list --format=json | jq -r '.[] | select(.state.status == "Stopped") | .name') for i in $hosts; do echo $i lxc config set $i boot.aut...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
#!/bin/bash
set -eu

hosts=$(lxc list --format=json | jq -r '.[] | select(.state.status == "Stopped") | .name')

for i in $hosts; do
  echo $i
  lxc config set $i boot.autostart false || true
done