Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
fi

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
add comment

Your Answer

 
discard

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.