Fix detecting available zpool names.
Submitted by: kmoore Obtained from: PC-BSD MFC after: 3 days Sponsored by: iXsystems
This commit is contained in:
parent
64907dc465
commit
01c64e45fc
@ -277,7 +277,7 @@ get_zpool_name()
|
||||
while :
|
||||
do
|
||||
NEWNAME="${BASENAME}${NUM}"
|
||||
zpool import | grep -qw "${NEWNAME}" && break
|
||||
zpool import | grep -qw "${NEWNAME}" || break
|
||||
NUM=$((NUM+1))
|
||||
done
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user