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/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"
snap disable lxd
@ -135,9 +140,8 @@ reboot
}
post_reboot_script () {
echo "Stopping lxd and delete /var/snap/lxd/common/lxd/*"
snap stop lxd.daemon
snap stop --disable lxd.daemon
echo "Disabling lxd and delete /var/snap/lxd/common/lxd/*"
snap disable lxd
rm /var/snap/lxd/common/lxd/* -r
echo "Executing /root/onstart"