From 4a50568daa75b0c543ff527d2c1e22034f4a3a15 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Thu, 16 Sep 2010 16:18:08 +0200
Subject: Correcting to narrow pattern for counting kernel images (Closes:
#581252).
---
scripts/build/lb_binary_syslinux | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/build/lb_binary_syslinux b/scripts/build/lb_binary_syslinux
index a613381..c5f53bf 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
--
cgit v1.0