extra packages

tony.chamberlain at lemko.com tony.chamberlain at lemko.com
Tue Nov 4 03:00:48 UTC 2008


After a bit of time I finally was able to make an installation DVD of CentOS4.5 
with a ks.cfg file (made by anaconda during a previous installation).  I placed
it in the same directory as CentOS, isolinux, etc. (i.e. the top directory) and
can do  linux ks=cdrom:ks.cfg  This works fine.

After installation there are a couple other things I do: untar two files and
install them.  For instance, if the file is called xyz.tz I do a

  tar -zxvf xyz.tz
  cd xyz
  ./install

these are my own install packages (one installs a VPN and the other just does stuff like add users, install java, etc).

I want to use the %post of my ks.cfg file to do these automatically. On the same install disk, before doing the mkisofs, I made in the top directory a directory called "addon" and put my two tar files, preimage.tz and nppt.tz. Then from examples I modified the ks.cfg file like this:


   %post --nochroot
   mkdir -p /mnt/cdrom
   mount /tmp/cdrom /mnt/cdrom
   mkdir /tmp/inst
   cp /mnt/cdrom/addon/*.tz  /tmp/inst/
   cd /tmp/inst
   tar -zxvf preimage.tz
   cd preimage
   ./install
   cd ..
   tar -zxvf nppt.tz
   cd nppt
   ./install

I wanted to access the addon directory on the CD and from what I could tell
to do that you had to do the mount of /tmp/cdrom.

During install it said it was executing the postinstall and I did not see
any errors, but nothing worked.  There was no /mnt/cdrom directory, and nothign was installed.  Unfortunately, the install did not show any errors and the stuff was not in /root/install.log.

I can experiment and do things like df >> /root/mylog.txt and
mount /tmp/cdrom /mnt/cdrom 2>&1 >> /roote/mylog.txt to see where the
files from the CD really are and what is going wrong, but every time I do
debugging I have to waste another DVD making an installation DVD.

So two questions:

1. How do I access the addon directory on the DVD?  I know it is there
   because on a Linux system I put the DVD in the reader and see it.
2. How can I test thet %post without wasting a DVD each time?
   






More information about the Kickstart-list mailing list