diff options
author | Daniel Baumann <daniel@debian.org> | 2010-09-16 16:18:08 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2010-09-16 16:18:08 +0200 |
commit | 57b585272f4d492cb7f5875debb596018c3f3003 (patch) | |
tree | 0bde4ccda8a04fb73e5a6f1450bf427e03549051 | |
parent | cf9bd38d4e68f988ba319ec9a332bf6c536e8978 (diff) | |
download | vyos-live-build-57b585272f4d492cb7f5875debb596018c3f3003.tar.gz vyos-live-build-57b585272f4d492cb7f5875debb596018c3f3003.zip |
Correcting to narrow pattern for counting kernel images (Closes: #581252).
-rwxr-xr-x | scripts/build/lb_binary_syslinux | 2 |
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 |