Skip to content

Commit 906ce3b

Browse files
committed
Add anchor to end of string when pinning a kernel
Closes #326
1 parent 9c91afa commit 906ce3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎zfsbootmenu/lib/zfsbootmenu-core.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ set_default_kernel() {
634634
zdebug "pool set to ${pool}"
635635

636636
# Strip /boot/ to list only the file
637-
kernel="${2#/boot/}"
637+
kernel="${2#/boot/}$"
638638
zdebug "kernel set to ${kernel}"
639639

640640
# Make sure the pool is writable

0 commit comments

Comments
 (0)