Skip to content

Commit

Permalink
nextboot: Improve the shell code used to figure out the zpool name
Browse files Browse the repository at this point in the history
Reported by:	imp
Reviewed by:	imp, tsoome
Sponsored by:	Klara Inc.
Differential Revision:	https://reviews.freebsd.org/D30650
  • Loading branch information
allanjude committed Jun 5, 2021
1 parent c5a2d8c commit c6a3116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbin/reboot/nextboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c6a3116

Please sign in to comment.