Trouble getting include to work in my scripts

Christian.Rohrmeier at SCHERING.DE Christian.Rohrmeier at SCHERING.DE
Thu Jun 16 15:24:19 UTC 2005


Don't forget RHEL 2.1 anaconda doesn't support %include. (In case you are
an unlucky type who still has to admin 2.1... like me...) ;)

-Christian

_________________
Christian Rohrmeier
Schering AG
Corporate IT - Infrastructure and Services
Computer Systems and Operations
System Administration - Research and Development
Tel +49 30 468 15794
Fax +49 30 468 95794


                                                                           
             "Chowdhury,                                                   
             Chandan Dutta"                                                
             <chandan-dutta.ch                                          To 
             owdhury at hp.com>           "Espen Stefansen"                   
             Sent by:                  <espenas at gmail.com>                 
             kickstart-list-bo         "Discussion list about Kickstart"   
             unces at redhat.com          <kickstart-list at redhat.com>         
                                                                        cc 
                                                                           
             16.06.2005 12:57                                      Subject 
                                       RE: Trouble getting include to work 
                                       in my scripts                       
             Please respond to                                             
              Discussion list                                              
              about Kickstart                                              
             <kickstart-list at r                                             
                edhat.com>                                                 
                                                                           
                                                                           





-----Original Message-----
From: kickstart-list-bounces at redhat.com
[mailto:kickstart-list-bounces at redhat.com] On Behalf Of Espen Stefansen
Sent: Thursday, June 16, 2005 4:20 PM
To: kickstart-list at redhat.com
Subject: Trouble getting include to work in my scripts

In my company we use kickstart to install several different computers,
for instance laptop, desktop or servers. Each kickstart-file is
configured to the specific needs. And in lots of those files, some
sections are similar, like yum-settings.

So for instance if i need to edit some of the yum-settings, i must edit
all of the kickstart-files that uses that yum-setting. Instead i want to
put the yum-settings in it's own file and then include it in the
kickstart-files. That will make it much easier to update.

All the files are in the same directory. So i try to use: %include
yum_conf.inc. But that didn't work. So i tried the full path on the
server, but that didn't help either.

Does anyone have a suggestion to how i can make this work....

Regards
Espen Stefansen


----------------------------------

Hello,

If I am not wrong, the %include files should be present on  machine
where the install is going on. So you will have to get the file to some
temporary location (eg /tmp ) on the machine on which the installation
is going on and then give the path to the include. You can get the file
through a NFS mount or ftp in the %pre section of the ks.cfg

-CDC

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






More information about the Kickstart-list mailing list