Bug#431748: live-helper: lh_chroot_syslinux fails when run under dash
sed -i -e
calls in lh_chroot_syslinux fail when run under dash as /bin/sh, as the
\n in substitutions are expanded before sed gets them, and so it doesn't
see the end of the command. Running under bash solves the problem.
This is compounded by the fact that even though sed has an exit status
of 1 and the script is set -e the script ends up exiting with a zero
status, and so the build continues and you get a broken image.
I'm not ruling out that this is a bug in dash, but I don't know the
rules of shell to say whether it is or not.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (550, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.17-loser (PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages live-helper depends on:
ii cdebootstrap 0.4.3 Bootstrap a Debian system
ii debootstrap 0.3.3.3 Bootstrap a basic Debian system
live-helper recommends no packages.
-- no debconf information