Re: %include syntax and usage

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

 



On Wednesday 13 September 2006 18:59, Robert Denton wrote:
> Jesse, that's interesting approach.  I have actually tried using wget  
> but I get the error that wget is not a known command. I usually do  
> not use a %pre section.  Where should I put the wget?  In the %post?  
> Don't I need to declare packages before the %post section?

Strange, I'm pretty sure wget worked before...  Python is there you can always 
use a python library to pull down the script.  Your packages do need to be 
defined before %post.  Here is the code I used:

%pre
cd /tmp
# Get the part generator and run it
wget http://192.168.2.3/production/autokickrhel4.py
python autokickrhel4.py

This generated content for my partitions, my X config, and my package set.

%include /tmp/parts
%include /tmp/xconfig
%include /tmp/packages

-- 
Jesse Keating RHCE      (geek.j2solutions.net)
Fedora Legacy Team      (www.fedoralegacy.org)
GPG Public Key          (geek.j2solutions.net/jkeating.j2solutions.pub)

Attachment: pgpVDaTW3fHEh.pgp
Description: PGP signature


[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