Package: bootcd
Version: 2.53
Severity: normal
There are a number of bashisms in bootcd version 2.53 (currently found
in etch) that cause it and boot CD images created with bootcd to fail
when dash is used as /bin/sh.
dash is a strictly POSIX-compliant Bourne shell that is frequently used
to speed up shell scripting on older or minimalist systems. Personally,
I have found that using dash instead of bash can speed up boot-up times
by as much as 30%.
If you want to get a quick survey of where the problems might be,
install the devscripts package and try the following:
[EMAIL PROTECTED]:~# ls /usr/bin/bootcdwrite /usr/share/bootcd/*{.lib,.sh} |
xargs checkbashisms
possible bashism in /usr/bin/bootcdwrite line 755: ' function extra_changes'
possible bashism in /usr/bin/bootcdwrite line 870: 'echo -e'
possible bashism in /usr/share/bootcd/S12bootcdram.sh line 10: 'echo -n'
script /usr/share/bootcd/bootcd-check.lib does not appear to have a #!
interpreter line; you may get strange results
possible bashism in /usr/share/bootcd/bootcd-check.lib line 14: 'echo -n'
possible bashism in /usr/share/bootcd/bootcd-check.lib line 544: 'echo -n'
possible bashism in /usr/share/bootcd/bootcd-check.lib line 546: 'echo -n'
possible bashism in /usr/share/bootcd/bootcd-check.lib line 548: 'echo -n'
possible bashism in /usr/share/bootcd/bootcd-check.lib line 552: 'echo -n'
possible bashism in /usr/share/bootcd/bootcd-check.lib line 555: 'echo -n'
possible bashism in /usr/share/bootcd/bootcd-check.lib line 561: 'echo -n'
possible bashism in /usr/share/bootcd/bootcd-check.lib line 571: 'echo -n'
possible bashism in /usr/share/bootcd/bootcd-check.lib line 579: 'echo -n'
possible bashism in /usr/share/bootcd/bootcd-check.lib line 582: 'echo -n'
possible bashism in /usr/share/bootcd/bootcd-check.lib line 585: 'echo -n'
possible bashism in /usr/share/bootcd/bootcd-check.lib line 588: 'echo -n'
script /usr/share/bootcd/bootcd-i386.lib does not appear to have a #!
interpreter line; you may get strange results
script /usr/share/bootcd/bootcd-ia64.lib does not appear to have a #!
interpreter line; you may get strange results
script /usr/share/bootcd/bootcd-run.lib does not appear to have a #!
interpreter line; you may get strange results
possible bashism in /usr/share/bootcd/bootcd-run.lib line 40: 'echo -n'
possible bashism in /usr/share/bootcd/bootcd-run.lib line 76: 'echo -n'
script /usr/share/bootcd/bootcd2disk.lib does not appear to have a #!
interpreter line; you may get strange results
possible bashism in /usr/share/bootcd/bootcd2disk.lib line 54: 'function
disk2real'
possible bashism in /usr/share/bootcd/bootcd2disk.lib line 166: ' function
do_first'
possible bashism in /usr/share/bootcd/bootcdtest.sh line 68: 'echo -n'
possible bashism in /usr/share/bootcd/bootcdtest.sh line 69: 'let '
possible bashism in /usr/share/bootcd/bootcdtest.sh line 70: 'echo -n'
possible bashism in /usr/share/bootcd/bootcdtest.sh line 77: 'echo -n'
I think that the 'echo -n' complaints can be ignored as well as the
missing hash-bangs in the .libs, but the rest should be fixed. Either
that, or specifically use "#!/bin/bash" as the first line of your
scripts.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]