nextboot: Improve the shell code used to figure out the zpool name

Reported by:	imp
Reviewed by:	imp, tsoome
Sponsored by:	Klara Inc.
Differential Revision:	https://reviews.freebsd.org/D30650
This commit is contained in:
Allan Jude 2021-06-04 22:09:43 +00:00
parent c5a2d8c5f5
commit c6a311678d

View File

@ -109,7 +109,7 @@ fi
zfs=$(df -Tn "/boot/" 2>/dev/null | while read _fs _type _other ; do
[ "zfs" = "${_type}" ] || continue
echo "${_fs%/ROOT/*}"
echo "${_fs%%/*}"
done)
set -e