Re: good example for %pre section???

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

 



On Sun, 2002-06-02 at 18:41, rpjday wrote:
> 
>   in aid of designing good ks docs, anyone got a *good* example for
> a sample %pre section?  the red hat course rh133 shows the example:
> 
>   %pre
>   mknod /tmp/hda
>   dd if=/mnt/source/pub/mbr.img of=/tmp/hda
> 

how about something like this:

%pre --interpreter /usr/bin/python
import urllib
url="http://path/to/includeksfile";
urllib.urlretrieve(url, '/tmp/include.ks')


then somewhere in the kickstart (like maybe in place of %packages) you
would put:


%include /tmp/include.ks

and you could have semi-dynamically generated ks.cfg :)


silly, yes, but could be helpful.

the above code is untested but it "should" work.

-sv


Attachment: signature.asc
Description: This is a digitally signed message part


[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