File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,9 +90,11 @@ bootloader_update_config()
9090 for kernel; do
9191 [ -f " $kernel " ] ||
9292 return 0
93-
9493 kver=" ${kernel##*/ vmlinuz} "
9594 kver=" ${kver# -} "
95+
96+ kernel=${kernel# ${bootdir} }
97+ kernel=${kernel#/ }
9698
9799 label=" ${kver: +Kernel ($kver )} "
98100 label=" ${label:- Default} "
@@ -106,7 +108,7 @@ bootloader_update_config()
106108 for initrd_name in initrd initramfs; do
107109 for suf in ' ' ' .img' ; do
108110 if [ -f " $bootdir /$initrd_name ${kver: +-$kver } $suf " ]; then
109- initrd=" $bootdir / $ initrd_name${kver: +-$kver } $suf "
111+ initrd=" $initrd_name ${kver: +-$kver } $suf "
110112 break 2
111113 fi
112114 done
@@ -128,9 +130,9 @@ bootloader_update_config()
128130 git_config_get_subsections ' boot'
129131
130132 {
131- print_entry " $bootdir " /vmlinuz
132- print_entry " $bootdir " /vmlinuz-[A-Za-z]*
133- print_entry " $bootdir " /vmlinuz-[0-9]*
133+ print_entry $bootdir /vmlinuz
134+ print_entry $bootdir /vmlinuz-[A-Za-z]*
135+ print_entry $bootdir /vmlinuz-[0-9]*
134136 } >> " $conf "
135137}
136138
You can’t perform that action at this time.
0 commit comments