Page 1 of 1

Post Script dont run on the Kickstart

Posted: 2012/02/16 21:39:44
by allamiro
i HAVE THIS PROBLEM WHERE SOME OF MY SCRIPTS SPECIFCALLY THE FIRST 20 LINES ON THE % POST % SECTION WORK AND OTHER ONES DONT IF I CHANGES THOSE ONES THAT THEY WORK AND PUT ALL WAY TO THE END THE OTHER SCRIPTS DO WORK BUT NOT ALL OF MY BOTTOM SCRIPTS WORK

NOT SURE HOW TO GO BY TROUBLESHOOTING THIS ?

ANy one notices that before

Re: Post Script dont run on the Kickstart

Posted: 2012/02/16 22:09:59
by TrevorH
Please don't shout!

Have a look at http://wiki.centos.org/TipsAndTricks/KickStart at the bit about creating a log file for your script. That might give you a clue about what's going on.

Re: Post Script dont run on the Kickstart

Posted: 2012/02/16 22:47:01
by allamiro
Thanks for the info I found out that I may probably need to add the chroot option to the post section since I have some copying of scripts from the media

The post-install script is run in a chroot environment; therefore, performing tasks such as copying scripts or RPMs from the installation media do not work.

Post Script dont run on the Kickstart

Posted: 2012/02/17 07:57:28
by jlehtone
I thought that you had [url=https://www.centos.org/modules/newbb/viewtopic.php?topic_id=35751&forum=45]this thread[/url] for the post-install-firstboot-tweak issue?