mirror of
https://github.com/opnsense/src.git
synced 2026-03-29 14:13:11 -04:00
zfsboottest.sh: gracefully handle default value of bootfs property
Reported by: theraven MFC after: 10 days
This commit is contained in:
parent
78ed0e49ff
commit
efeadeff78
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue