From 5b03d6ae0ed66f92ccc1a6c59bc0c87acaf028eb Mon Sep 17 00:00:00 2001 From: milan Date: Thu, 8 Aug 2019 23:28:44 +0200 Subject: [PATCH] snapfix2 --- setup-usl-mm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/setup-usl-mm b/setup-usl-mm index 2f0a781..be62d92 100755 --- a/setup-usl-mm +++ b/setup-usl-mm @@ -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"