Post Script dont run on the Kickstart

General support questions including new installations
Post Reply
allamiro
Posts: 21
Joined: 2009/07/30 20:43:36

Post Script dont run on the Kickstart

Post by allamiro » 2012/02/16 21:39:44

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

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Post Script dont run on the Kickstart

Post by TrevorH » 2012/02/16 22:09:59

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.

allamiro
Posts: 21
Joined: 2009/07/30 20:43:36

Re: Post Script dont run on the Kickstart

Post by allamiro » 2012/02/16 22:47:01

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.

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Post Script dont run on the Kickstart

Post by jlehtone » 2012/02/17 07:57:28

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?

Post Reply