Skip to content

Commit

Permalink
tests/storage-vm: replace snap restart by systemctl restart
Browse files Browse the repository at this point in the history
  • Loading branch information
simondeziel committed Oct 25, 2024
1 parent 94da399 commit ca059a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/storage-vm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ GiB="$((1024 * MiB))"
if echo "${poolDriverList}" | grep -qwF "zfs" && grep -qF zfs.external /snap/lxd/current/commands/daemon.start; then
echo "==> Use external ZFS tools"
snap set lxd zfs.external=true
snap restart lxd
systemctl restart snap.lxd.daemon.service

if command -v zfs; then
apt-get autopurge -y zfsutils-linux
Expand All @@ -51,7 +51,7 @@ if echo "${poolDriverList}" | grep -qwF "zfs" && grep -qF zfs.external /snap/lxd

echo "==> Use internal ZFS tools"
snap unset lxd zfs.external
snap restart lxd
systemctl restart snap.lxd.daemon.service
else
echo "==> Skipping zfs.external test"
fi
Expand Down

0 comments on commit ca059a3

Please sign in to comment.