Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am installing a large number of Linux systems (RHEL5), from a preconfigured image. If I run sys-unconfig in that image before I distribute it, upon the first run of the imaged system, I get asked a lot of questions - hostname, IP, etc.

My question is how to pass the answers to those questions automatically, the way I would pass an answer file to a fresh sysprepped windows build

share|improve this question
up vote 1 down vote accepted

I don't have RHEL here but on my FC11 in /etc/rc.d/rc.sysinit on line 705 I have the following:

if [ -f /.unconfigured ]; then
 # some code here to do some things

So my first answer is unless you modify this file there is no way to automate this. I will try to get a copy of the CENTOS version as is the same as RHEL and confirm that it is the same.

Granted RHEL may have done things different due to enterprise needs and I will confirm that.

share|improve this answer
Found the needed fields in RHEL5.3, thanks! – dyasny Sep 9 '09 at 9:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.