Skip to content

Commit

Permalink
tests/storage-vm: improve detection of zfs.external support
Browse files Browse the repository at this point in the history
Don't look for the snap option name (`zfs.external`) but for the config
variable name (`zfs_external`). Improve `grep` args while at it.

Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Oct 25, 2024
1 parent ca059a3 commit 10d599e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/storage-vm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ MiB="$((1024 * 1024))"
GiB="$((1024 * MiB))"

# zfs.external
if echo "${poolDriverList}" | grep -qwF "zfs" && grep -qF zfs.external /snap/lxd/current/commands/daemon.start; then
if echo "${poolDriverList}" | grep -qwF "zfs" && grep -qwFm1 zfs_external /snap/lxd/current/commands/daemon.start; then
echo "==> Use external ZFS tools"
snap set lxd zfs.external=true
systemctl restart snap.lxd.daemon.service
Expand Down

0 comments on commit 10d599e

Please sign in to comment.