snapfix2
This commit is contained in:
parent
8a1ecbf5cd
commit
5b03d6ae0e
1 changed files with 4 additions and 5 deletions
|
@ -49,9 +49,8 @@ zfs create crypt/lxd
|
|||
zfs create crypt/lxd/dir
|
||||
zfs create crypt/lxd/storage
|
||||
|
||||
echo "Stopping and disabling lxd"
|
||||
snap stop lxd.daemon
|
||||
snap stop --disable lxd.daemon
|
||||
echo "Disabling lxd snap"
|
||||
snap disable lxd
|
||||
|
||||
echo "Deleting everything in /var/snap/lxd/common/lxd/*"
|
||||
rm /var/snap/lxd/common/lxd/* -r
|
||||
|
@ -115,13 +114,13 @@ echo "echo \"Passwords not match!\"" >> /root/onstart
|
|||
echo "exit 1" >> /root/onstart
|
||||
echo "fi" >> /root/onstart
|
||||
echo "echo \"Stopping LXD snap daemon and deleting /var/snap/lxd/common/lxd/*\"" >> /root/onstart
|
||||
echo "snap stop lxd.daemon" >> /root/onstart
|
||||
echo "snap disable lxd" >> /root/onstart
|
||||
echo "rm /var/snap/lxd/common/lxd/* -rf" >> /root/onstart
|
||||
echo "echo \"Opening encrypted partition\"" >> /root/onstart
|
||||
echo "echo \$pass_var | cryptsetup open $PARTITION crypt -c -" >> /root/onstart
|
||||
echo "partprobe" >> /root/onstart
|
||||
echo "zpool import -d /dev/mapper crypt -f -m" >> /root/onstart
|
||||
echo "snap start lxd.daemon" >> /root/onstart
|
||||
echo "snap enable lxd" >> /root/onstart
|
||||
|
||||
chmod +x /root/onstart
|
||||
read -p "Press any key for reboot"
|
||||
|
|
Loading…
Reference in a new issue