Date: Mon, 7 May 2012 15:03:42 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r235129 - head/tools/tools/zfsboottest Message-ID: <201205071503.q47F3gsa070124@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Mon May 7 15:03:42 2012 New Revision: 235129 URL: http://svn.freebsd.org/changeset/base/235129 Log: zfsboottest.sh: gracefully handle default value of bootfs property Reported by: theraven MFC after: 10 days Modified: head/tools/tools/zfsboottest/zfsboottest.sh Modified: head/tools/tools/zfsboottest/zfsboottest.sh ============================================================================== --- head/tools/tools/zfsboottest/zfsboottest.sh Mon May 7 14:07:13 2012 (r235128) +++ head/tools/tools/zfsboottest/zfsboottest.sh Mon May 7 15:03:42 2012 (r235129) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205071503.q47F3gsa070124>