release: snap: Automate installation of lxd.

This commit is contained in:
Andrew Hamilton 2021-12-09 01:16:31 +10:00
parent 166dc332c0
commit 4b5e5b2f89
2 changed files with 32 additions and 2 deletions

30
packaging/lxd_preseed Normal file
View file

@ -0,0 +1,30 @@
config: {}
networks:
- config:
ipv4.address: auto
ipv6.address: auto
description: ""
name: lxdbr0
type: ""
project: default
storage_pools:
- config:
size: 3GB
description: ""
name: default
driver: zfs
profiles:
- config: {}
description: ""
devices:
eth0:
name: eth0
network: lxdbr0
type: nic
root:
path: /
pool: default
type: disk
name: default
projects: []
cluster: null

View file

@ -9,8 +9,8 @@ set -e
set -x
# snap install lxd
# lxd init # Use defaults. Set size of loop device to at least 3GB.
sudo snap install lxd
cat packaging/lxd_preseed | lxd init --preseed
snapcraft clean --use-lxd
snapcraft --use-lxd --debug