Includes in pre scripts
Pablo Iranzo Gómez
Pablo.Iranzo at redhat.com
Wed Mar 26 18:46:27 UTC 2008
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
More information about the Kickstart-list
mailing list