summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2012-05-07 15:03:42 +0000
committeravg <avg@FreeBSD.org>2012-05-07 15:03:42 +0000
commit21b948097d64c714a445a157b1f035a2c7616a0c (patch)
treee2328deb6dcdfb629b5814e0bd192d873f7c84a2 /tools
parent2463f208a26e08825bafd69986312adc7c264f8d (diff)
downloadFreeBSD-src-21b948097d64c714a445a157b1f035a2c7616a0c.zip
FreeBSD-src-21b948097d64c714a445a157b1f035a2c7616a0c.tar.gz
zfsboottest.sh: gracefully handle default value of bootfs property
Reported by: theraven MFC after: 10 days
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 e1bcf8b..461d966 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
OpenPOWER on IntegriCloud