Skip to content

Commit

Permalink
Add anchor to end of string when pinning a kernel
Browse files Browse the repository at this point in the history
Closes #326
  • Loading branch information
zdykstra committed Aug 3, 2022
1 parent 9c91afa commit 906ce3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zfsbootmenu/lib/zfsbootmenu-core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ set_default_kernel() {
zdebug "pool set to ${pool}"

# Strip /boot/ to list only the file
kernel="${2#/boot/}"
kernel="${2#/boot/}$"
zdebug "kernel set to ${kernel}"

# Make sure the pool is writable
Expand Down

0 comments on commit 906ce3b

Please sign in to comment.