Alt. 1. Invest in an rewritable DVD<br><br>Alt. 2. Place the ks.cfg on a http/ftp server under the development phase<br><br><div class="gmail_quote">On Wed, Nov 5, 2008 at 3:37 AM,  <span dir="ltr"><<a href="mailto:tony.chamberlain@lemko.com">tony.chamberlain@lemko.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br>
-----Original Message-----<br>
From: Jarle Bjørgeengen [mailto:<a href="mailto:jarle@bjorgeengen.net">jarle@bjorgeengen.net</a>]<br>
Sent: Tuesday, November 4, 2008 01:29 PM<br>
To: 'Discussion list about Kickstart'<br>
</div><div><div></div><div class="Wj3C7c">Subject: Re: extra packages<br>
<br>
<br>
On Nov 4, 2008, at 6:39 , Kyle Powell wrote:<br>
<br>
> -----BEGIN PGP SIGNED MESSAGE-----<br>
> Hash: SHA1<br>
><br>
> <a href="mailto:tony.chamberlain@lemko.com">tony.chamberlain@lemko.com</a> wrote:<br>
>> You seem not to be able to do ALT-F2 during the %post part.  And it<br>
>> went very quickly (I just did sleep 5000 which I hope is about 8<br>
>> minutes).<br>
>> It went way quicker than that, but the "Installing bootloader" is<br>
>> taking<br>
>> forver.  I wonder whether my sleep statement is taking place there<br>
>> instead?<br>
><br>
> No, you certainly should be able to switch to VT 2 while the %post<br>
> script is<br>
> running. If anaconda seems to be finishing the post script quickly<br>
> and you have<br>
> a 'sleep 5000' in your post script, this would indicate the post<br>
> script is not<br>
> running completely, at least not far enough to reach the sleep<br>
> (sleep 5000 would<br>
> sleep for 5000 seconds, which is nearly an hour and a half).<br>
><br>
>>   %post --nochroot<br>
>>   mkdir -p /mnt/cdrom<br>
>>   mount /tmp/cdrom /mnt/cdrom<br>
>>   mkdir /tmp/inst<br>
>>   cp /mnt/cdrom/addon/*.tz  /tmp/inst/<br>
>>   cd /tmp/inst<br>
>>   tar -zxvf <a href="http://preimage.tz" target="_blank">preimage.tz</a><br>
>>   cd preimage<br>
>>   ./install<br>
>>   cd ..<br>
>>   tar -zxvf <a href="http://nppt.tz" target="_blank">nppt.tz</a><br>
>>   cd nppt<br>
>>   ./install<br>
>><br>
>> 1. How do I access the addon directory on the DVD?  I know it is<br>
>> there<br>
>>   because on a Linux system I put the DVD in the reader and see it.<br>
><br>
> When installing from CD or DVD, it will already be mounted at /mnt/<br>
> source. I<br>
> would recommend you use two post scripts. Copy the files from the CD<br>
> in a<br>
> - --nochroot post script, then run the install in a regular<br>
> (chroot'ed) post script.<br>
><br>
> %post --nochroot<br>
> mkdir -p /mnt/sysimage/tmp/inst<br>
> cp /mnt/source/addon/* /mnt/sysimage/tmp/inst<br>
><br>
> %post<br>
> cd /tmp/inst<br>
> tar -zxvf <a href="http://preimage.tz" target="_blank">preimage.tz</a><br>
> cd preimage<br>
> ./install<br>
> cd ..<br>
> tar -zxvf <a href="http://nppt.tz" target="_blank">nppt.tz</a><br>
> cd nppt<br>
> ./install<br>
><br>
<br>
Neat . Didn'r know you could have 2 %posts<br>
<br>
>> 2. How can I test thet %post without wasting a DVD each time?<br>
><br>
> If you have a second machine you could pull the ks.cfg via http, or<br>
> if you have<br>
> a floppy, you could get the kickstart file from the floppy drive.<br>
> These would<br>
> allow you to change the kickstart file without burning a new DVD<br>
> each time. If<br>
> you absolutely want to pull the kickstart file from the iso each<br>
> time (instead<br>
> of just changing the ks= line to point to the cdrom once all your<br>
> testing is<br>
> complete) you could kickstart a virtual machine and present the iso<br>
> file to the<br>
> VM without actually burning a DVD.<br>
<br>
You can also use usb-stick<br>
<br>
linux  ks=hd:<partition_where_ks.cfg_is_located><br>
<br>
Just edit isolinux config if you want this to be default.<br>
<br>
Once I pre-made a DVD image which wrote host-specific options to a<br>
temporary file in the %pre section, based on the output of dmidecode<br>
(machine serial number) , and later included the autogenerated file in<br>
the main ks.config.<br>
<br>
</div></div>==========<br>
I tried many values for "<partition_where_ks.cfg_is_located>" but none<br>
seemed to work.<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
_______________________________________________<br>
Kickstart-list mailing list<br>
<a href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/kickstart-list" target="_blank">https://www.redhat.com/mailman/listinfo/kickstart-list</a><br>
</div></div></blockquote></div><br>