summaryrefslogtreecommitdiff
path: root/scripts/build/lb_binary_syslinux
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-09-16 16:18:08 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:23 +0100
commit4a50568daa75b0c543ff527d2c1e22034f4a3a15 (patch)
tree0bde4ccda8a04fb73e5a6f1450bf427e03549051 /scripts/build/lb_binary_syslinux
parentb71f9dd0c8c2bee673d02ec31339c2ab280dbfae (diff)
downloadlive-build-4a50568daa75b0c543ff527d2c1e22034f4a3a15.zip
live-build-4a50568daa75b0c543ff527d2c1e22034f4a3a15.tar.gz
Correcting to narrow pattern for counting kernel images (Closes: #581252).
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 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