[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Post Install Script Troubles
- From: Christopher Malek <cmalek caltech edu>
- To: kickstart-list redhat com
- Subject: Re: Post Install Script Troubles
- Date: Fri, 25 Apr 2003 13:02:31 -0700
On Fri, Apr 25, 2003 at 12:54:00PM -0700, Robert Denton wrote:
> Hello all, I am installing RH9 over HTTP and I am using a kickstart file on
> the same server. The installation itself runs flawlessly and every aspect
> of the ks.cfg seems to work except for the %post portion. I am trying to
> create a few directories as well as using the "sample" offered in the
> redhat.com tutorial. Here is the script:
>
> %post --nochroot
> echo "Kickstart-installed RH9 on `/bin/date`" > /mnt/sysimage/etc/motd
> mkdir /mnt/sysimage/var/www/html/sound
> mkdir /mnt/sysimage/var/www/html/code
>
> This script seems to run, but not the way I want it to. (Note that the line
> that starts with echo is from the redhat tutorial:
> http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/s1-kickst
> art2-postinstallconfig.html)
>
> The directories are created but with a question mark after them, and the
> motd file is not modified, but a file called motd^M is created with the
> correct verbiage in it. Thus an ls -a of the html dir produces:
>
> . .. code? sound? usage
Looks like you edited your ks.cfg on a windows box. Run it through
dos2unix and try again: your end of line terminators are messing you up.
Chris
--
cmalek caltech edu
Nosce Teipsum
Office: (626) 395-2593
Fax: (626) 792-4257
Mail Stop: 014-81
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]