svn commit: r236458 - stable/9/usr.sbin/pc-sysinstall/backend

Josh Paetzel jpaetzel at FreeBSD.org
Sat Jun 2 18:22:38 UTC 2012


Author: jpaetzel
Date: Sat Jun  2 18:22:38 2012
New Revision: 236458
URL: http://svn.freebsd.org/changeset/base/236458

Log:
  MFC 236331
  
  Fix detecting available zpool names.
  
  Submitted by:	kmoore
  Obtained from:	PC-BSD
  Sponsored by:	iXsystems

Modified:
  stable/9/usr.sbin/pc-sysinstall/backend/functions.sh
Directory Properties:
  stable/9/usr.sbin/pc-sysinstall/   (props changed)

Modified: stable/9/usr.sbin/pc-sysinstall/backend/functions.sh
==============================================================================
--- stable/9/usr.sbin/pc-sysinstall/backend/functions.sh	Sat Jun  2 18:13:53 2012	(r236457)
+++ stable/9/usr.sbin/pc-sysinstall/backend/functions.sh	Sat Jun  2 18:22:38 2012	(r236458)
@@ -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
 


More information about the svn-src-stable-9 mailing list