Re: %include syntax and usage

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

 



Hm.. But if you build the list dynamically in the %pre section, isn't this still in the kickstart config file? I am trying to separate out the packages because I have a long list of packages and package exclusions.

Robert Denton
Network Administrator
Headsprout
800.401.5062 x1305
www.headsprout.com

On Sep 13, 2006, at 12:02 PM, Shabazian, Chip wrote:


The way I do this is to create the file I want, along with the
decisioning logic in %pre.

Example

if xxxxx ; then
cat << EOF >> /tmp/pkg2include
pkg1
pkg2
etc
EOF

Then in the %packages, I use
%include /tmp/pkg2include

I think I ran into problems when the file doesn't exist, so I added:
touch /tmp/pkg2include
at the end of the %pre so the file was there, even if it was empty.

Chip

-----Original Message-----
From: kickstart-list-bounces@xxxxxxxxxx
[mailto:kickstart-list-bounces@xxxxxxxxxx] On Behalf Of Robert Denton
Sent: Wednesday, September 13, 2006 8:40 AM
To: kickstart-list@xxxxxxxxxx
Subject: %include syntax and usage

Hello all,

I am hoping someone can help me with this.  I am trying to separate my
%packages list into a different file using the %include directive. I am
finding that no matter what I try, the install aborts due to not being
able to see the packages file.  Hhere si the set up:

I build the linux computers via http, typing this at the boot prompt:

linux ks=http://10.10.10.52/ks.cfg

This points the install to the kickstart config which is located here on
my webserver:

/var/build/linux/ks.cfg

Also in that directory is 'packages'

/var/build/linux/packages

In the kickstart file I have tried all of these and none have worked:

%include packages
%include ./packages
%include /var/build/linux/packages
%include http://10.10.10.52/packages

Could someone give me some pointers on the syntax?  Thanks!


Robert Denton
Network Administrator
Headsprout
800.401.5062 x1305
www.headsprout.com


_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

_______________________________________________
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