Re: postinstall files have ? at end

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

 



On Thu, Feb 08, 2001 at 02:55:52PM -0600, Schuster, Dan wrote:
> When our postinstall program on RH7 does an echo to create a file like:
> 	echo "mybox" > /etc/HOSTNAME
> 
> The file ends up being /etc/HOSTNAME? (with a ? at the end of it).  Why is
> this doing this and how do you stop it from happening.  Does it have to do
> with how the ks.cfg file is created -or- how it is copied to the floppy
> disk?
> 
> Much Thanks,
> -Dan

Was the "ks.cfg" file created on a DOS/Windows machine? If so, then there
might be a hidden "^M" at the end of the line. This would show up as a "?".
Do a "od -c < ks.cfg" and you'll see the "\r" characters.

Hope this helps,

Ajay





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux