switch_to_3.17_lxd_version

This commit is contained in:
Milan Meduna 2019-10-22 22:05:32 +02:00
parent 445f459e2b
commit 304c31f95b

View file

@ -52,6 +52,11 @@ zfs create crypt/lxd
zfs create crypt/lxd/dir zfs create crypt/lxd/dir
zfs create crypt/lxd/storage zfs create crypt/lxd/storage
echo "Switch to 3.17 version LXD because 3.18 have bug in lxd import"
snap switch --channel 3.17/stable lxd
snap refresh
echo "Disabling lxd snap" echo "Disabling lxd snap"
snap disable lxd snap disable lxd
@ -135,9 +140,8 @@ reboot
} }
post_reboot_script () { post_reboot_script () {
echo "Stopping lxd and delete /var/snap/lxd/common/lxd/*" echo "Disabling lxd and delete /var/snap/lxd/common/lxd/*"
snap stop lxd.daemon snap disable lxd
snap stop --disable lxd.daemon
rm /var/snap/lxd/common/lxd/* -r rm /var/snap/lxd/common/lxd/* -r
echo "Executing /root/onstart" echo "Executing /root/onstart"