[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: Includes in pre scripts
- From: Pablo Iranzo Gómez <Pablo Iranzo redhat com>
- To: Discussion list about Kickstart <kickstart-list redhat com>
- Subject: RE: Includes in pre scripts
- Date: Wed, 26 Mar 2008 19:46:27 +0100 (CET)
On Wed, 26 Mar 2008, Hearn, Stan J. wrote:
> What is the difference between "%include something" and "sh /something"?
sh /something executes it
%include just put contents into kickstart file passed to anaconda
> What is a good reason to use %include then?
For including scripts created or placed on a web server, maybe, generated
dinamically based on values suplied on the wget call
wget -O /tmp/ksdyn http://yourserver.com/cgi-bin/get-my-script.cgi?MAC=11:00:33:00:AA:FF&mem=128M
%include /tmp/ksdyn
For example, for create a bigger swap partition based on ram...
>
> Are you saying this because the include is above the %pre? In other
> words, do you also want to use "sh /tmp/something" instead of include in
> a %pre or %post stanza?
It dependes on what do you really want, if you want to exec something, you
can just wget it, then sh /yourscript and you're done, even mix in your
scripts orders to create an include file that you'll later include with
%include
Regards
Pablo
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]