From owner-svn-src-all@FreeBSD.ORG Sat Jun 2 18:24:44 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C3891065689; Sat, 2 Jun 2012 18:24:44 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 36F818FC18; Sat, 2 Jun 2012 18:24:44 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q52IOiwq005053; Sat, 2 Jun 2012 18:24:44 GMT (envelope-from avg@svn.freebsd.org) Received: (from avg@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q52IOivm005051; Sat, 2 Jun 2012 18:24:44 GMT (envelope-from avg@svn.freebsd.org) Message-Id: <201206021824.q52IOivm005051@svn.freebsd.org> From: Andriy Gapon Date: Sat, 2 Jun 2012 18:24:44 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r236459 - stable/9/tools/tools/zfsboottest X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jun 2012 18:24:44 -0000 Author: avg Date: Sat Jun 2 18:24:43 2012 New Revision: 236459 URL: http://svn.freebsd.org/changeset/base/236459 Log: MFC r235129: zfsboottest.sh: gracefully handle default value of bootfs property Modified: stable/9/tools/tools/zfsboottest/zfsboottest.sh Directory Properties: stable/9/tools/tools/ (props changed) stable/9/tools/tools/nanobsd/ (props changed) stable/9/tools/tools/zfsboottest/ (props changed) Modified: stable/9/tools/tools/zfsboottest/zfsboottest.sh ============================================================================== --- stable/9/tools/tools/zfsboottest/zfsboottest.sh Sat Jun 2 18:22:38 2012 (r236458) +++ stable/9/tools/tools/zfsboottest/zfsboottest.sh Sat Jun 2 18:24:43 2012 (r236459) @@ -52,8 +52,7 @@ if [ $? -ne 0 ]; then fi bootfs=`zpool get bootfs "${pool}" | tail -1 | awk '{print $3}'` if [ "${bootfs}" = "-" ]; then - echo "The \"bootfs\" property is not configured for pool \"${pool}\"." >&2 - exit 1 + bootfs="${pool}" fi # Dataset's mountpoint property should be set to 'legacy'. if [ "`zfs get -H -o value mountpoint ${bootfs}`" != "legacy" ]; then