[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Post Install Script Troubles
- From: Robert Denton <Robert headsprout com>
- To: "'kickstart-list redhat com'" <kickstart-list redhat com>
- Subject: Post Install Script Troubles
- Date: Fri, 25 Apr 2003 12:54:00 -0700
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
I have also tried the same script without the --nochroot and without the
/mnt/sysimage/ but that doesn't work either. Does anyone have any idea what
I am doing wrong here?
Thanks in advance,
Robert
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]