extra packages
tony.chamberlain at lemko.com
tony.chamberlain at lemko.com
Tue Nov 4 14:14:10 UTC 2008
You seem not to be able to do ALT-F2 during the %post part. And it
went very quickly (I just did sleep 5000 which I hope is about 8 minutes).
It went way quicker than that, but the "Installing bootloader" is taking
forver. I wonder whether my sleep statement is taking place there
instead?
I did do a couplf of "echo" and "ls" and "pwd" in the %post and redirected
the output so I hope if this thing finishes that I will be able to read the log stuff.
-----Original Message-----
From: Shabazian, Chip [mailto:Chip.Shabazian at bankofamerica.com]
Sent: Monday, November 3, 2008 10:20 PM
To: 'Discussion list about Kickstart'
Subject: RE: extra packages
Put a "sleep 9999999999" in your %post, then go to the alt-f2 console
and take a look around. I forget where it is, but I believe it's
already mounted, so you can just copy it using the --nochroot %post
first.
-----Original Message-----
From: kickstart-list-bounces at redhat.com
[mailto:kickstart-list-bounces at redhat.com] On Behalf Of
tony.chamberlain at lemko.com
Sent: Monday, November 03, 2008 7:01 PM
To: kickstart-list at redhat.com
Subject: extra packages
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?
_______________________________________________
Kickstart-list mailing list
Kickstart-list at redhat.com
https://www.redhat.com/mailman/listinfo/kickstart-list
_______________________________________________
Kickstart-list mailing list
Kickstart-list at redhat.com
https://www.redhat.com/mailman/listinfo/kickstart-list
More information about the Kickstart-list
mailing list