Correcting to narrow pattern for counting kernel images (Closes: #581252).

This commit is contained in:
Daniel Baumann 2010-09-16 16:18:08 +02:00
parent cf9bd38d4e
commit 57b585272f
1 changed files with 1 additions and 1 deletions

View File

@ -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