Re: extra packages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----Original Message-----
From: Jarle Bjørgeengen [mailto:jarle@xxxxxxxxxxxxxxx]
Sent: Tuesday, November 4, 2008 01:29 PM
To: 'Discussion list about Kickstart'
Subject: Re: extra packages


On Nov 4, 2008, at 6:39 , Kyle Powell wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> tony.chamberlain@xxxxxxxxx wrote:
>> 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?
>
> No, you certainly should be able to switch to VT 2 while the %post  
> script is
> running. If anaconda seems to be finishing the post script quickly  
> and you have
> a 'sleep 5000' in your post script, this would indicate the post  
> script is not
> running completely, at least not far enough to reach the sleep  
> (sleep 5000 would
> sleep for 5000 seconds, which is nearly an hour and a half).
>
>>   %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
>>
>> 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.
>
> When installing from CD or DVD, it will already be mounted at /mnt/ 
> source. I
> would recommend you use two post scripts. Copy the files from the CD  
> in a
> - --nochroot post script, then run the install in a regular  
> (chroot'ed) post script.
>
> %post --nochroot
> mkdir -p /mnt/sysimage/tmp/inst
> cp /mnt/source/addon/* /mnt/sysimage/tmp/inst
>
> %post
> cd /tmp/inst
> tar -zxvf preimage.tz
> cd preimage
> ./install
> cd ..
> tar -zxvf nppt.tz
> cd nppt
> ./install
>

Neat . Didn'r know you could have 2 %posts

>> 2. How can I test thet %post without wasting a DVD each time?
>
> If you have a second machine you could pull the ks.cfg via http, or  
> if you have
> a floppy, you could get the kickstart file from the floppy drive.  
> These would
> allow you to change the kickstart file without burning a new DVD  
> each time. If
> you absolutely want to pull the kickstart file from the iso each  
> time (instead
> of just changing the ks= line to point to the cdrom once all your  
> testing is
> complete) you could kickstart a virtual machine and present the iso  
> file to the
> VM without actually burning a DVD.

You can also use usb-stick

linux  ks=hd:<partition_where_ks.cfg_is_located>

Just edit isolinux config if you want this to be default.


Once I pre-made a DVD image which wrote host-specific options to a  
temporary file in the %pre section, based on the output of dmidecode  
(machine serial number) , and later included the autogenerated file in  
the main ks.config.

======================
OK I made something called lemkoks.cfg and put it in the top level directory
of the dvd.  If I do  linux ks=cdrom:lemkoks.cfg everything works fine
and it uses the lemkoks.cfg.

I wanted to do like the above (without first the autogenerated stuff from
%pre.  Just isolinux stuff).  So from the internet I found a web site and
copied what they did into isolinux.cfg with my modifications like this:

 label prelem
  kernel vmlinuz
  append ks=cdrom:/lemkoks.cfg initrd=initrd.img ramdisk_size=8192

and then I redid mkisofs.  When I boot and give the command

     linux prelem

It loads everything, but it does not get the ks file.  (I can always tell
if at the beginning of installation I get the menu to test the disk or
skip, that the ks file was not found).

Did I do something wrong in the iso.cfg file?  Or what am I missing?






_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux