[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#448751: live-helper: newer versions of lh_binary_syslinux broken if using multiple falvours



I think I found at least part of the problem:

[...]
> + '[' iso = iso ']'
> ++ ls -1 binary/live
> ++ grep 'vmlinuz.\.img$'

I guess this is at least part of the problem.
this grep should probably be something like:
grep 'vmlinuz[0-9]*$'

> ++ wc -l
> + num=0
> + num=1
> + mv binary/live/vmlinuz-2.6.18-6-686-imq binary/live/vmlinuz1
> + mv binary/live/initrd.img-2.6.18-6-686-imq binary/live/initrd1.img
> + KERNEL=vmlinuz1
> + INITRD=initrd1.img

[...]

> ++ echo 6-686-imq 5-686-imq
> ++ wc -w
> + '[' 2 -gt 1 ']'
> + for KERNEL in 'chroot/boot/vmlinuz-*'
> ++ basename chroot/boot/vmlinuz-2.6.18-5-686-imq
> + KERNEL_IMAGE=vmlinuz-2.6.18-5-686-imq
> ++ echo vmlinuz-2.6.18-5-686-imq
> ++ sed -e s/vmlinuz-//
> + KERNEL_VERSION=2.6.18-5-686-imq
> + INITRD=initrd.img-2.6.18-5-686-imq
> + Syslinux_live_entry live-2.6.18-5-686-imq 'Start Debian Live' vmlinuz-2.6.18-5-686-imq initrd.img-2.6.18-5-686-imq
> + LABEL=live-2.6.18-5-686-imq
> ++ Utf8_to_latin1 'Start Debian Live'
> ++ VALUE='Start Debian Live'
> ++ echo 'Start Debian Live'
> ++ iconv -f utf-8 -t latin1
> + MENULABEL='Start Debian Live'
> + MENULABEL='Start Debian Live'
> + KERNEL=vmlinuz-2.6.18-5-686-imq
> + INITRD=initrd.img-2.6.18-5-686-imq
> + APPEND=
> + '[' iso = iso ']'
> ++ ls -1 binary/live
> ++ grep 'vmlinuz.\.img$'
> ++ wc -l
> + num=0
> + num=1
> + mv binary/live/vmlinuz-2.6.18-5-686-imq binary/live/vmlinuz1
> + mv binary/live/initrd.img-2.6.18-5-686-imq binary/live/initrd1.img
>
> This will overwrite the previously moved kernel image?!

this is caused by the wrong grep which should have returned 1 line

Greetings
Jens






Reply to: