Fix overly zealous double-zpool check

This commit is contained in:
Jørn Åne de Jong 2022-05-01 14:22:45 +02:00 committed by Nico Schottelius
parent 4fbd39ea1e
commit 059a0d6bae
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ ZPOOL=zroot
ONE_CONTEXT_PKG_URL="https://github.com/OpenNebula/addon-context-linux/releases/download/v6.2.0/one-context-6.2.0_1.txz"
if [ "$(zpool list -Ho name $ZPOOL)" = $ZPOOL ]; then
if [ "$(zpool list -Ho name $ZPOOL || true)" = $ZPOOL ]; then
echo "The pool $ZPOOL is already imported." >&2
exit 1
fi