%include in kickstart

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat %include in kickstart
# 1  
Old 04-17-2012
Question %include in kickstart

RHEL 5.4

I'm trying to use %include statements in my kickstarts, and am running into some problems.

In %pre, I can %include /mnt/source/isolinux/setup-questions and that works just fine. One of the things it does is echo out several variables to /tmp/vars In %post --nochroot, I copy /tmp/vars to /mnt/sysimage/tmp/vars so I can access /tmp/vars in %post That works just fine.

The problem is when I try to include files I've copied to /tmp In %pre, I can copy my include files to /tmp/ks-files/, and I've verified that they are, indeed, copied. The files exist, are readable, have the correct content. But if, in %pre, I %include /tmp/ks-files/setup-questions, kickstart simple sails right on past. In %post, again, I can drop to a shell and see that /tmp/ks-files/* are all there, but the first %include bombs out with an error about the file not existing.

What's the secret to getting this to work?
# 2  
Old 05-03-2012
Anyone?
# 3  
Old 05-03-2012
Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Thank You.

The UNIX and Linux Forums.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Kickstart using anaconda-ks.cfg

Heyas I'm trying to build a live image using livecd-tools (livecd-creator), but this time i'd like to reuse the /root/anaconda-ks.cfg. System: Fedora 3.16.7-200.fc20.x86_64 The building starts, the download begins, but it fails with networking. MAIN.ks # Based on: fedora-live-base.ks... (0 Replies)
Discussion started by: sea
0 Replies

2. Red Hat

Networking in kickstart

I'm using a script in %pre that prompts for IP, hostname, etc. The answers are dumped out as variables and used to set up the config files in %post All works well. Now, it's being used to install the OS on an HP Proliant that's in a remote datacenter via iLO, and it takes about an hour to... (2 Replies)
Discussion started by: jnojr
2 Replies

3. Linux

Kickstart server

Hello everyone, I have problem while configuring kickstart server .i have performed some steps but still i am unable to configure kickstart server on CentOS 5.4. I have performed following steps:- yum install system-config-kickstart mkdir /kickstart mount /dev/cdrom /media cd /media... (2 Replies)
Discussion started by: karan chauhan
2 Replies

4. UNIX and Linux Applications

KickStart postscript problem

Hello everyone: Im not going to explain about kickstart, i supposed you know, that one of the features of this program is to run a postscript after installation.So after install packages you can run a set of commands to make a "first-configuration" of your system. Usually people writes... (0 Replies)
Discussion started by: trutoman
0 Replies

5. Red Hat

RH Kickstart Questions..

Hello, I am pretty new to using Linux and learning as I go, my setup is extremly simple, I have 1 virtual machine running on my laptop running (ubuntu 10.04), I've created a kickstart (Red Hat) file with the ksconfig. So I know have a config file for my Redhat.iso and my VM machine. What's... (1 Reply)
Discussion started by: NelsonC
1 Replies

6. Red Hat

RHEL Kickstart

Hi, I am trying to install RHEL5.3 using kickstart method. Copied the rhel.iso file from DVD to http location. ks.cfg and rhel.iso files are available on a WINDOWS2008 Server (via HTTP). In ks.cfg file, provided the media path as url --url=http://xx.xx.xx.xx/RHEL53. System understanding the... (3 Replies)
Discussion started by: uday123
3 Replies

7. Linux

RHEL5 Kickstart Problem... HELP!

Folks, Im hoping you guys can help me. Here is a description of what I have going on. Fresh VM, trying to run a Kickstart Install on it for RHEL5. I am looking to access the kickstart file through nfs. I boot from a local ISO image and everything goes fine, I get to the boot prompt and enter... (3 Replies)
Discussion started by: mkono
3 Replies

8. UNIX for Advanced & Expert Users

Kickstart File

Hi, I was able to set up a kickstart to install Red Hat Enterprise thought a network. I'm trying to enable a NTP time server in the post section of the kickstart file and also enable/disable a few services using chkconfig. I can't seam to get it to work, can anyone help ? I don't beleive i... (2 Replies)
Discussion started by: Georgesaa
2 Replies

9. Red Hat

kickstart output/input

Hello Linux gurus! Ive got a RedHat EnterP. 4 kickstart server that is also running RedHat EnterP 4. It is working as i should and no problem at all. However, now i want to run a little script with output and input. Ive read up a bit and what i realized is that a input in %pre phase is not a... (3 Replies)
Discussion started by: maskot
3 Replies

10. Linux

Redhat Kickstart

Would anyone know how to set a NIC to 100 Full Duplex from within a kickstart bootdisk? I just added the Tigon3 module to the bootnet.img - it loads fine but auto-negotiates to 100 Half Duplex for some reason - are there any parameters I can pass on the boot disk to force it 100 Full appreciate... (2 Replies)
Discussion started by: silvaman
2 Replies
Login or Register to Ask a Question