On 6/16/05, Christian.Rohrmeier@xxxxxxxxxxx <Christian.Rohrmeier@xxxxxxxxxxx> wrote: > > 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...) ;) I'm using Centos 4, RHEL 4 and Fedora 4. That's alot of 4's...:P > -----Original Message----- > From: kickstart-list-bounces@xxxxxxxxxx > Sent: Thursday, June 16, 2005 4:20 PM > 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 > I copied all of my inc-files to /tmp in the %pre-section. My kickstart now finds them, but it wont run all of them. Some of them get a "Error code 32256, can't run". For instance, in the first inc there's a simple perl one-liner who replaces a line in a file. It fails. The second inc-file does exactly the same, but more lines in other files, but this one doesnt work. The same scripts fail every time. I even tried using using ksappend, but it only includes one file. Does anybody include files in there kickstart-files, and have a working example to show me? And does anybody know what the 32256 error is?