RE: Includes in pre scripts

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

 



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

_______________________________________________
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