diff options
author | Allan Jude <allanjude@FreeBSD.org> | 2021-06-04 22:09:43 +0000 |
---|---|---|
committer | Allan Jude <allanjude@FreeBSD.org> | 2021-06-05 14:32:18 +0000 |
commit | c6a311678d667cb1e7b5417edb6567b7f07d148d (patch) | |
tree | 3ffad6f018c0b74804bd394f4c987c382d2ee6e4 | |
parent | c5a2d8c5f517b056bed2af64e6134481367773d4 (diff) | |
download | src-c6a311678d667cb1e7b5417edb6567b7f07d148d.tar.gz src-c6a311678d667cb1e7b5417edb6567b7f07d148d.zip |
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
-rw-r--r-- | sbin/reboot/nextboot.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/reboot/nextboot.sh b/sbin/reboot/nextboot.sh index 849d7a377714..2350c42516bf 100644 --- a/sbin/reboot/nextboot.sh +++ b/sbin/reboot/nextboot.sh @@ -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 |