summaryrefslogtreecommitdiff
path: root/scripts/build/lb_binary_syslinux
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/lb_binary_syslinux')
-rwxr-xr-xscripts/build/lb_binary_syslinux2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build/lb_binary_syslinux b/scripts/build/lb_binary_syslinux
index a613381f1..c5f53bfa5 100755
--- a/scripts/build/lb_binary_syslinux
+++ b/scripts/build/lb_binary_syslinux
@@ -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