From b8a2f1882298870ceafca6410a1df24ef22cfb28 Mon Sep 17 00:00:00 2001 From: "kayos@tcp.direct" Date: Fri, 16 Dec 2022 07:35:18 -0800 Subject: [PATCH] (partially) automate cluster join Signed-off-by: kayos@tcp.direct --- provision.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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}"