diff --git a/provision.sh b/provision.sh index 5a26417..c3af895 100755 --- a/provision.sh +++ b/provision.sh @@ -156,8 +156,11 @@ function user_ops() { function lxc_ops() { echo -e "$_SUBUID" >>/etc/subuid || return 1 echo -e "$_SUBGID" >>/etc/subgid || return 1 + snap install lxd || return 1 - lxd init + + # non destructive - if pre-existing it will fail + lxd init --auto --storage-backend btrfs --storage-create-device /dev/sda3 } function log() { _date="\e[90m[$(date -u +'%H:%M:%S')]${RESET}"