aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2012-05-07 15:03:42 +0000
committerAndriy Gapon <avg@FreeBSD.org>2012-05-07 15:03:42 +0000
commitefeadeff78566e60067bed50b832d239e18feaef (patch)
treee2328deb6dcdfb629b5814e0bd192d873f7c84a2 /tools
parent78ed0e49ff5fb814c92b991f9a7293dc2603c247 (diff)
downloadsrc-efeadeff78566e60067bed50b832d239e18feaef.tar.gz
src-efeadeff78566e60067bed50b832d239e18feaef.zip
zfsboottest.sh: gracefully handle default value of bootfs property
Reported by: theraven MFC after: 10 days
Notes
Notes: svn path=/head/; revision=235129
Diffstat (limited to 'tools')
-rwxr-xr-xtools/tools/zfsboottest/zfsboottest.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/tools/zfsboottest/zfsboottest.sh b/tools/tools/zfsboottest/zfsboottest.sh
index e1bcf8bebfdd..461d96613606 100755
--- a/tools/tools/zfsboottest/zfsboottest.sh
+++ b/tools/tools/zfsboottest/zfsboottest.sh
@@ -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