help-cfengine
[Top][All Lists]
Advanced

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

Re: running modules in %post section of a redhat ES3 kickstart?


From: John Borwick
Subject: Re: running modules in %post section of a redhat ES3 kickstart?
Date: Wed, 26 Jan 2005 10:49:19 -0500
User-agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041110

Don Harper wrote:
Has anyone done this?
Everything else works for me but the modules, which set up some needed
vars. :(  Works perfectly once I boot up after the install.

Any hints for debugging purposes?

Put a "sleep 10000" in the %post section, then alt-f2 to the shell to see what you've got available.

Personally, I put everything I need in /etc/rc.d/rc.local and replace it when done:

# FIRST BOOT
mv /etc/rc.d/rc.local /etc/rc.d/rc.local.sav
cat <<"RC_LOCAL" > /etc/rc.d/rc.local
#!/bin/sh
/usr/sbin/up2date --solvedeps=wfu-cfengine
cfagent -Kvq -DInit
mv /etc/rc.d/rc.local.sav /etc/rc.d/rc.local
RC_LOCAL
chmod 755 /etc/rc.d/rc.local

Yours,
John

--
           John Borwick
       System Administrator
      Wake Forest University | web  http://www.wfu.edu/~borwicjh
      Winston-Salem, NC, USA | GPG key ID             0x797326D5

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]