switch_to_3.17_lxd_version
This commit is contained in:
parent
445f459e2b
commit
304c31f95b
1 changed files with 7 additions and 3 deletions
10
setup-usl-mm
10
setup-usl-mm
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue