[CentOS] kickstart file problem

Thu Feb 14 21:33:11 UTC 2008
Lundgren, Andrew <Andrew.Lundgren at Level3.com>

That was the problem.

I found it before I found your email.  Good eyes!

Thank you.

--
Andrew

> -----Original Message-----
> From: centos-bounces at centos.org
> [mailto:centos-bounces at centos.org] On Behalf Of Milton Calnek
> Sent: Thursday, February 14, 2008 11:36 AM
> To: CentOS mailing list
> Subject: Re: [CentOS] kickstart file problem
>
> path: /mnt/sysimage/tmp/ks-script-ah2YMC
>
> But your script removes /tmp
> I'd start by not doing that to tmp.
>
> Lundgren, Andrew wrote:
> > 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.
> >
>
>
> >   File "/usr/lib/anaconda/gui.py", line 1034, in
> handleRenderCallback
> >     self.currentWindow.renderCallback()
> > OSError: [Errno 2] No such file or directory:
> > '/mnt/sysimage/tmp/ks-script-ah2YMC'
> >
> > Local variables in innermost frame:
> > intf: <gui.InstallInterface instance at 0x2aaab6572a28>
> > path: /mnt/sysimage/tmp/ks-script-ah2YMC
> > serial: 0
>
>
> > My script that I add is listed above, but a less cryptic
> version is here:
> > %post --log=/mnt/sysimage/root/post-install.log
> > # 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
> >
> --
> Milton Calnek BSc, A/Slt(Ret.)
> milton at calnek.com
> 306-717-8737
>
>
> --
> This message has been scanned for viruses and dangerous
> content by MailScanner, and is believed to be clean.
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>