Correcting to narrow pattern for counting kernel images (Closes: #581252).
This commit is contained in:
parent
cf9bd38d4e
commit
57b585272f
|
@ -95,7 +95,7 @@ Syslinux_live_entry ()
|
|||
|
||||
case "${LB_BINARY_IMAGES}" in
|
||||
iso*|usb*)
|
||||
NUMBER="$(ls -1 ${KERNEL_PATH} | grep 'vmlinuz[0-9]\+$' | wc -l)"
|
||||
NUMBER="$(ls -1 ${KERNEL_PATH} | grep 'vmlinuz-' | wc -l)"
|
||||
NUMBER="$((${NUMBER} +1))"
|
||||
|
||||
# Do not add numbering to filenames if first kernel/initrd
|
||||
|
|
Loading…
Reference in New Issue