Skip to content

Commit 05dbf11

Browse files
committed
Show /etc/zbm-commit-hash in zreport
1 parent d4b35a0 commit 05dbf11

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

zfsbootmenu/lib/zfsbootmenu-core.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1799,6 +1799,11 @@ emergency_shell() {
17991799
# returns: nothing
18001800

18011801
zreport() {
1802+
local ZBMTAG
1803+
if [ -r "/etc/zbm-commit-hash" ]; then
1804+
read -r ZBMTAG < /etc/zbm-commit-hash
1805+
echo -e "ZFSBootMenu version: ${ZBMTAG}\n"
1806+
fi
18021807
uname -a
18031808
echo -e "\n# modinfo"
18041809
echo "$( modinfo -F filename spl ): $( modinfo -F version spl )"

0 commit comments

Comments
 (0)