]> git.ipfire.org Git - thirdparty/dracut.git/commit - dracut
Fix "--debug" parameter for dracut
authorAndreas Thienemann <andreas@bawue.net>
Wed, 20 May 2009 07:03:01 +0000 (09:03 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 20 May 2009 07:03:01 +0000 (09:03 +0200)
commit00531568049f41e91195a534e083ae437d4e936c
tree9847ad3ae47c8ad39a5f66fbe9641af15c94c4db
parent5616feb004d72171504c5b541c9ba1dcd7bce524
Fix "--debug" parameter for dracut

remove "-d" as a short-alias for --debug. It collides with the
--driver short-alias.

If --debug is set, inst_script() spews binary "garbage" to the screen
which are interpreted as control characters by the terminal, prompting
the user to call "reset" after dracut has finished. This is related to
set -x  printing binary headers from files to stdout.
As inst_script() is only checking if it is a script it should copy by
reading the first 80chars of the file and checking for the shebang line,
it is safe to call tr on the read in data and remove all unprintable
chars if the debug switch is set.
dracut
dracut-functions