Red Hat Bugzilla – Bug 65042
carriage returns added to lines in %post
Last modified: 2007-04-18 12:42:37 EDT
* Red Hat 7.1
* kickstart install
Somewhere along the way, carriage returns are being added to the end of each
line in %post. Since "\r" is not treated as a whitespace character by the
shell, this can lead to some really strange results and error messages.
For example the line
pwd &> pwd_test
will create a file "pwd_test\r"
You can get around this problem if you are aware of it. For one line commands,
you can append " ; echo foo" to them or some such.
ack. nevermind. "Somewhere along the way" was in the ks file itself. I pulled
the kickstart file from an email and modified it. Of course my editor silently
went into dos mode and preserved the CRs without showing them to me.
Let this be a warning to others: kickstart files and carriage returns do not mix!