Updating kernel images number when installing them into live media.
This commit is contained in:
parent
57b585272f
commit
5acc7b4807
|
@ -96,10 +96,9 @@ Syslinux_live_entry ()
|
|||
case "${LB_BINARY_IMAGES}" in
|
||||
iso*|usb*)
|
||||
NUMBER="$(ls -1 ${KERNEL_PATH} | grep 'vmlinuz-' | wc -l)"
|
||||
NUMBER="$((${NUMBER} +1))"
|
||||
|
||||
# Do not add numbering to filenames if first kernel/initrd
|
||||
if [ "${NUMBER}" = "1" ]
|
||||
if [ "${NUMBER}" = "2" ]
|
||||
then
|
||||
NUMBER=""
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue