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
|
case "${LB_BINARY_IMAGES}" in
|
||||||
iso*|usb*)
|
iso*|usb*)
|
||||||
NUMBER="$(ls -1 ${KERNEL_PATH} | grep 'vmlinuz-' | wc -l)"
|
NUMBER="$(ls -1 ${KERNEL_PATH} | grep 'vmlinuz-' | wc -l)"
|
||||||
NUMBER="$((${NUMBER} +1))"
|
|
||||||
|
|
||||||
# Do not add numbering to filenames if first kernel/initrd
|
# Do not add numbering to filenames if first kernel/initrd
|
||||||
if [ "${NUMBER}" = "1" ]
|
if [ "${NUMBER}" = "2" ]
|
||||||
then
|
then
|
||||||
NUMBER=""
|
NUMBER=""
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue