<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=307491818-14022008><FONT face=Arial size=2>I have a kickstart 
file that I am using to install multiple machines.  If I install with no 
%post script, everything runs great.  When I add the following %post 
section, if fails.</FONT></SPAN></DIV>
<DIV><SPAN class=307491818-14022008><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=307491818-14022008><FONT face=Arial size=2>I have been working 
on this for a few days now without luck,  Any help would be 
appreciated.</FONT></SPAN></DIV>
<DIV><SPAN class=307491818-14022008><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=307491818-14022008><FONT face=Arial size=2>Here is the error, 
the script follows.</FONT></SPAN></DIV>
<DIV><SPAN class=307491818-14022008><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=307491818-14022008><FONT face=Arial size=2>Traceback (most 
recent call first):<BR>  File "/usr/lib/anaconda/kickstart.py", line 82, in 
run<BR>    os.unlink(path)<BR>  File 
"/usr/lib/anaconda/kickstart.py", line 781, in 
<lambda><BR>    map (lambda s: s.run(anaconda.rootPath, 
serial, anaconda.intf), postScripts)<BR>  File 
"/usr/lib/anaconda/kickstart.py", line 781, in postAction<BR>    
map (lambda s: s.run(anaconda.rootPath, serial, anaconda.intf), 
postScripts)<BR>  File 
"/tmp/treedir.17875/instimage/usr/lib/anaconda/packages.py", line 44, in 
doPostAction<BR>    anaconda.id.instClass.postAction(anaconda, 
flags.serial)<BR>  File "/usr/lib/anaconda/dispatch.py", line 201, in 
moveStep<BR>    rc = stepFunc(self.anaconda)<BR>  File 
"/usr/lib/anaconda/dispatch.py", line 124, in gotoNext<BR>    
self.moveStep()<BR>  File "/usr/lib/anaconda/gui.py", line 1007, in 
nextClicked<BR>    self.anaconda.dispatch.gotoNext()<BR>  
File "/usr/lib/anaconda/iw/progress_gui.py", line 243, in 
renderCallback<BR>    self.intf.icw.nextClicked()<BR>  File 
"/usr/lib/anaconda/gui.py", line 1034, in 
handleRenderCallback<BR>    
self.currentWindow.renderCallback()<BR>OSError: [Errno 2] No such file or 
directory: '/mnt/sysimage/tmp/ks-script-ah2YMC'</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=307491818-14022008><FONT face=Arial size=2>Local variables in 
innermost frame:<BR>intf: <gui.InstallInterface instance at 
0x2aaab6572a28><BR>tempfile: <module 'tempfile' from 
'/usr/lib64/python2.4/tempfile.py'><BR>self: (s: '# setup NTP|echo "setup 
NTP"|cat << EOF > /etc/ntp.conf|restrict default noquery notrap 
nomodfiy|restrict 127.0.0.1|server 0.rhel.ntp.org|server 1.rhel.ntp.org|server 
2.rhel.ntp.org|driftfile /var/lib/ntp/drift|EOF|/sbin/chkconfig ntpd on|# setup 
services.|echo "setup services"|/sbin/chkconfig atd off|/sbin/chkconfig autofs 
off|/sbin/chkconfig avahi-daemon off|/sbin/chkconfig bluetooth 
off|/sbin/chkconfig cpuspeed off|/sbin/chkconfig cups off|/sbin/chkconfig gpm 
off|/sbin/chkconfig hidd off|/sbin/chkconfig ip6tables off|/sbin/chkconfig pcscd 
off|/sbin/chkconfig netfs --add|/sbin/chkconfig netfs on|# relocate tmp|echo 
"relocate root"|rm -rf /tmp|ln -s /var/tmp /tmp|# add lustre module 
configuration|echo "add lustre module configuration"|echo "options lnet 
networks=tcp0(eth1,eth0)" >> /etc/modprobe.conf|# create motd|echo "set 
motd"|echo "Built as admin/ingest using VIPER install 1.0" > /etc/motd|echo 
"Adding level3 with bad password set"|/usr/sbin/useradd -d /home/level3 -m -u 
100 -g 100 -p BLOCKED level3|' i: /bin/sh c: 1)<BR>messages: 
/mnt/sysimage/root/post-install.log<BR>scriptRoot: /mnt/sysimage<BR>chroot: 
/mnt/sysimage<BR>fd: 31<BR>rc: 0<BR>path: 
/mnt/sysimage/tmp/ks-script-ah2YMC<BR>serial: 0<BR>os: <module 'os' from 
'/usr/lib64/python2.4/os.py'></FONT></SPAN></DIV>
<DIV><SPAN class=307491818-14022008><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=307491818-14022008><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=307491818-14022008><FONT face=Arial size=2>My script that I add 
is listed above, but a less cryptic version is here:</FONT></SPAN></DIV>
<DIV><SPAN class=307491818-14022008><FONT face=Arial size=2>%post 
--log=/mnt/sysimage/root/post-install.log<BR># setup NTP<BR>echo "setup 
NTP"<BR>cat << EOF > /etc/ntp.conf<BR>restrict default noquery notrap 
nomodfiy<BR>restrict 127.0.0.1<BR>server 0.rhel.ntp.org<BR>server 
1.rhel.ntp.org<BR>server 2.rhel.ntp.org<BR>driftfile 
/var/lib/ntp/drift<BR>EOF<BR>/sbin/chkconfig ntpd on<BR># setup 
services.<BR>echo "setup services"<BR>/sbin/chkconfig atd off<BR>/sbin/chkconfig 
autofs off<BR>/sbin/chkconfig avahi-daemon off<BR>/sbin/chkconfig bluetooth 
off<BR>/sbin/chkconfig cpuspeed off<BR>/sbin/chkconfig cups 
off<BR>/sbin/chkconfig gpm off<BR>/sbin/chkconfig hidd off<BR>/sbin/chkconfig 
ip6tables off<BR>/sbin/chkconfig pcscd off<BR>/sbin/chkconfig netfs 
--add<BR>/sbin/chkconfig netfs on<BR># relocate tmp<BR>echo "relocate 
root"<BR>rm -rf /tmp<BR>ln -s /var/tmp /tmp<BR># add lustre module 
configuration<BR>echo "add lustre module configuration"<BR>echo "options lnet 
networks=tcp0(eth1,eth0)" >> /etc/modprobe.conf<BR># create motd<BR>echo 
"set motd"<BR>echo "Built as admin/ingest using VIPER install 1.0" > 
/etc/motd<BR>echo "Adding level3 with bad password set"<BR>/usr/sbin/useradd -d 
/home/level3 -m -u 100 -g 100 -p BLOCKED level3</DIV>
<DIV><BR></DIV></FONT></SPAN></BODY></HTML>