Skip to content

Commit 8d3bbff

Browse files
solbjornzdykstra
authored andcommitted
Fix kernel selection after introducing $BASE/environments
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 <[email protected]>
1 parent b743893 commit 8d3bbff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zfsbootmenu/lib/zfsbootmenu-lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ draw_kernel() {
135135
return 130
136136
fi
137137

138-
_kernels="${BASE}/${benv}/kernels"
138+
_kernels="$( be_location "${benv}" )/kernels"
139139
if [ ! -r "${_kernels}" ] ; then
140140
zerror "kernel file ${_kernels} missing"
141141
return 130

0 commit comments

Comments
 (0)