Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init.d/50-import-pools: tailor text if using a binary release #684

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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