11.01.2015 Views

Red Hat Enterprise Linux Installation Guide 5.2 - linux.meuhobby.com

Red Hat Enterprise Linux Installation Guide 5.2 - linux.meuhobby.com

Red Hat Enterprise Linux Installation Guide 5.2 - linux.meuhobby.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Making the Kickstart File Available<br />

7.1. Examples<br />

Register the system to a <strong>Red</strong> <strong>Hat</strong> Network Satellite:<br />

%post<br />

( # Note that in this example we run the entire %post section as a subshell<br />

for logging.<br />

wget -O- http://proxy-or-sat.example.<strong>com</strong>/pub/bootstrap_script | /bin/bash<br />

/usr/sbin/rhnreg_ks --activationkey=<br />

# End the subshell and capture any output to a post-install log file.<br />

) 1>/root/post_install.log 2>&1<br />

Run a script named runme from an NFS share:<br />

mkdir /mnt/temp<br />

mount -o nolock 10.10.0.2:/usr/new-machines /mnt/temp open -s -w --<br />

/mnt/temp/runme<br />

umount /mnt/temp<br />

Note<br />

NFS file locking is not supported while in kickstart mode, therefore -o nolock is<br />

required when mounting an NFS mount.<br />

8. Making the Kickstart File Available<br />

A kickstart file must be placed in one of the following locations:<br />

• On a boot diskette<br />

• On a boot CD-ROM<br />

• On a network<br />

Normally a kickstart file is copied to the boot diskette, or made available on the network. The<br />

network-based approach is most <strong>com</strong>monly used, as most kickstart installations tend to be<br />

performed on networked <strong>com</strong>puters.<br />

Let us take a more in-depth look at where the kickstart file may be placed.<br />

8.1. Creating Kickstart Boot Media<br />

Diskette-based booting is no longer supported in <strong>Red</strong> <strong>Hat</strong> <strong>Enterprise</strong> <strong>Linux</strong>. <strong>Installation</strong>s must<br />

use CD-ROM or flash memory products for booting. However, the kickstart file may still reside<br />

on a diskette's top-level directory, and must be named ks.cfg.<br />

305

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!