Skip to content

Commit dbb23f1

Browse files
committed
init.d/50-import-pools: tailor text if using a binary release
1 parent 6eebde0 commit dbb23f1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

zfsbootmenu/init.d/50-import-pools

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,15 @@ while IFS=$'\t' read -r _pool _property; do
9393
done <<<"$( zpool get all -H -o name,property )"
9494

9595
if [ "${unsupported}" -ne 0 ]; then
96-
zerror "Unsupported features detected, Upgrade ZFS modules in ZFSBootMenu with generate-zbm"
96+
if [ -n "${ZBM_RELEASE_BUILD}" ]; then
97+
upgrade="Check for a new binary release of ZFSBootMenu"
98+
else
99+
upgrade="Upgrade ZFS modules in ZFSBootMenu with generate-zbm"
100+
fi
101+
102+
zerror "Unsupported features detected, ${upgrade}"
97103
timed_prompt -m "$( colorize red 'Unsupported features detected')" \
98-
-m "$( colorize red 'Upgrade ZFS modules in ZFSBootMenu with generate-zbm')"
104+
-m "$( colorize red "${upgrade}" )"
99105
fi
100106
unset unsupported
101107

0 commit comments

Comments
 (0)