mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 00:50:50 +00:00
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:
parent
c5a2d8c5f5
commit
c6a311678d
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue