Skip to content

Commit

Permalink
Fix kernel selection after introducing $BASE/environments
Browse files Browse the repository at this point in the history
After commit 3399f4b, ZBM no longer allows user to select
a kernel to boot, with the log error message:

ZFSBootMenu: kernel file zfsbootmenu/<pool and bootenv here>/kernels missing

That is due to that the path to the kernels list hasn't been updated
to use be_location() and still uses the old "zfsbootmenu/<pool>"
scheme. Doing `ln -s` from the recovery shell solves the problem.
Adjust that place accordingly to fix the issue.

Fixes: 3399f4b ("Move dataset mountpoint to $BASE/environments/")
Signed-off-by: Alexander Lobakin <alobakin@pm.me>
  • Loading branch information
solbjorn authored and zdykstra committed Nov 3, 2022
1 parent b743893 commit 8d3bbff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zfsbootmenu/lib/zfsbootmenu-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ draw_kernel() {
return 130
fi

_kernels="${BASE}/${benv}/kernels"
_kernels="$( be_location "${benv}" )/kernels"
if [ ! -r "${_kernels}" ] ; then
zerror "kernel file ${_kernels} missing"
return 130
Expand Down

0 comments on commit 8d3bbff

Please sign in to comment.