Tim, The %include will work correctly, but you need the full path. The only way the installation will know where the file is on NFS is to mount the network location. If you mount the network share in %pre, then %include will be able to include it.
%include /pre/template_fileserver.ks %pre mkdir /pre mount -r -o nolock 10.10.10.10:/exportfs/pre /pre The %pre section will be processed when the kickstart file is loaded. It will create a local /pre directory and mount /exportfs/pre from 10.10.10.10. Now the installation knows where to get /pre/template_fileserver.ks file. Regards, Joseph -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Tim Edwards Sent: Thursday, March 19, 2009 9:11 AM To: Red Hat Enterprise Linux 5 (Tikanga) discussion mailing-list Subject: Re: [rhelv5-list] Include statements in Kickstart files over NFS I'm finding this a bit confusing, the RHEL documentation says: "Use the %include /path/to/file command to include the contents of another file in the kickstart file as though the contents were at the location of the %include command in the kickstart file." What would be the point of the %include statement if it doesn't in fact do this? I mean I could try jumping through hoops in the %pre section but surely this is just providing the functionality that the %include statement's mean to give automatically. Or does it work better with kickstart files made available over http or ftp? Regards Tim Olt, Joseph wrote: > Tim, > > > > As Rigoberto has indicated, you will need to do some %pre processing. > Either having the %pre script create the template_stuff.ks or you need > to "mkdir /something" and "mount -r -o nolock <serverIP>:/share > /something". Then you could access template_stuff.ks. The problem you > have is that the kickstart script is retrieved. Once retrieved, you > cannot reference that location directly. > > > > Regards, > > > > Joseph _______________________________________________ rhelv5-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhelv5-list _______________________________________________ rhelv5-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhelv5-list
