RE: Post Install Script Troubles

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

 



Thank you Patrick, Jason and Christopher.  You guys are quick.  I was using
notepad on a windows box, but that was by habit only.  I have an RH9 box
sitting right here and I will use it and give it another go.  Thanks for
your speedy advice!

-----Original Message-----
From: Patrick Smith [mailto:patms@xxxxxxx] 
Sent: Friday, April 25, 2003 3:06 PM
To: kickstart-list@xxxxxxxxxx
Subject: RE: Post Install Script Troubles


Dont use wordpad to edit the files ;) I ran into the same problem recently,
notepad works fine for me, but anything else in Windows ruins it.

--

Regards,

Patrick Smith
Sr. Systems Administrator
Everyone's Internet/Rackshack.net
patms@xxxxxxx

-----Original Message-----
From: kickstart-list-admin@xxxxxxxxxx
[mailto:kickstart-list-admin@xxxxxxxxxx]On Behalf Of Robert Denton
Sent: Friday, April 25, 2003 12:54 PM
To: 'kickstart-list@xxxxxxxxxx'
Subject: Post Install Script Troubles


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



_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/kickstart-list



_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/kickstart-list





[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