Skip to content

Commit

Permalink
init.d/50-import-pools: tailor text if using a binary release
Browse files Browse the repository at this point in the history
  • Loading branch information
zdykstra committed Oct 17, 2024
1 parent 6eebde0 commit 321d1b5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions zfsbootmenu/init.d/50-import-pools
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,15 @@ while IFS=$'\t' read -r _pool _property; do
done <<<"$( zpool get all -H -o name,property )"

if [ "${unsupported}" -ne 0 ]; then
zerror "Unsupported features detected, Upgrade ZFS modules in ZFSBootMenu with generate-zbm"
if [ -n "${ZBM_RELEASE_BUILD}" ]; then
upgrade="Check for a new binary release of ZFSBootMenu"
else
upgrade="Upgrade ZFS modules in ZFSBootMenu with generate-zbm"
fi

zerror "Unsupported features detected, ${upgrade}"
timed_prompt -m "$( colorize red 'Unsupported features detected')" \
-m "$( colorize red 'Upgrade ZFS modules in ZFSBootMenu with generate-zbm')"
-m "$( colorize red "${upgrade}" )"
fi
unset unsupported

Expand Down

0 comments on commit 321d1b5

Please sign in to comment.