One thing that I do to help me is to insert a pause at the end of the
post code
while [ ! -e /tmp/stop.txt ]; do
sleep 1
done
that allows the installation to wait until the file /tmp/stop.txt is
created (manually).
In the mean while we have access to a shell through one of the
terminals, I think that it is Crtl-Alt-F2 but I'm not sure.
It is very usefull since we can go any where and inspect the system.
It is even possible to go into /proc and see if status of your process
(environment, etc).
Hope that it will help.
Don't forget to remove the pause once you fix the problem(s).
Carl Riches wrote:
Have you tried putting in the full path name of mkdir, i.e.:
/bin/mkdir -p /var/mario/mario
There isn't much of an environment in %post. I have used full path names
in all of the commands that I use in %post, e.g.:
/bin/mkdir /etc/ssh2
/bin/mv aliases aliases.release
/bin/cp -p /mnt/FileSystem/mscc/etc/aliases aliases
Carl
Carl G. Riches
Software Engineer
Department of Mathematics
Box 354350 voice: 206-543-5082 or 206-616-3636
University of Washington fax: 206-543-0397
Seattle, WA 98195-4350 internet: riches@xxxxxxxxxxxxxxxxx
On Thu, 17 Jan 2002, Mario wrote:
That also does not work.
It is not only the mkdir that not works but everything under %post.
-----Original Message-----
From: kickstart-list-admin@xxxxxxxxxx
[mailto:kickstart-list-admin@xxxxxxxxxx] On Behalf Of Scott Bachmann
Sent: donderdag 17 januari 2002 22:14
To: kickstart-list@xxxxxxxxxx
Subject: RE: %post problem
Might I suggest trying "mkdir -p /var/mario/mario" for that command?
The
'-p' flag will have it create the parent directory also, if it does not
exist, since I'm guessing that it wouldn't on a standard installation
done
via kickstart (see 'man mkdir').
Scott Bachmann
Systems Administrator
On Thu, 17 Jan 2002, Mario wrote:
-> Date: Thu, 17 Jan 2002 21:57:03 +0100
-> From: Mario <mariovandewalle@xxxxxxxxxx>
-> Reply-To: kickstart-list@xxxxxxxxxx
-> To: kickstart-list@xxxxxxxxxx
-> Subject: RE: %post problem
->
-> Hello,
->
-> No, not even that.
->
-> Regards,
-> Mario
->
-> -----Original Message-----
-> From: kickstart-list-admin@xxxxxxxxxx
-> [mailto:kickstart-list-admin@xxxxxxxxxx] On Behalf Of Taylor,
ForrestX
-> Sent: donderdag 17 januari 2002 21:52
-> To: 'kickstart-list@xxxxxxxxxx'
-> Subject: RE: %post problem
->
-> Does the /var/mario/mario directory get created?
->
-> Forrest
->
->
->
->
-> Hello
->
-> Can you help, what is wrong with the %post part???
-> The kickstart is running well but everything in de %post is not
-> executed.
-> Any idee???
->
-> I have created a RedHat 7.1 linux boot disk and I have put the
kickstart
-> script on that bootdisk.
->
-> This is my ks.cfg:
<Snip>
-> %post
-> mkdir /var/mario/mario
-> echo "ONBOOT=yes" >> /etc/sysconfig/network-scrips/ifcfg-eth1
->
-> #Turn services on and off:
-> /sbin/chkconfig --level 345 telnet on
->
-> #create root crontab
-> cat <<EOF >/tmp/crontab.root
-> # Keep the time up to date
-> 0,15,30,45 * * * * /usr/sbin/ntpdate -s eggtimer 2>&1 >/dev/null
-> # Recycle Exim log files
-> 1 0 * * * /usr/exim/bin/exicyclog
-> # Flush the Exim queue
-> 0,15,30,45 * * * * /usr/exim/bin/exim -q
-> EOF
-> crontab /tmp/crontab.root
-> rm /tmp/crontab.root
->
->
-> I hope you can help.
->
-> Kind Regards,
-> Mario
->
_______________________________________________
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