[wplug] kickstart config redhat 8.0

Vanco, Donald VANCOD at PIOS.com
Tue Mar 4 08:51:25 EST 2003


John Harrold wrote:
> hey.
> 
> i'm working on a kickstart config file to upgrade the computers in
> the lab to redhat 8.0. i'm having a bit of a delima with the hostname
> for the computer the script is running on. i'm setting up the network
> card using our dhcp server:
> 
> network --bootproto dhcp
> 
> this sets the ip, the nameservers, and i believe the gateway. is there
> anyway to have the host name be set in the same way? 
	That's all up to the DHCP server - not the installer.

> as it stands
> now, i have to edit /etc/sysconfig/network and change
> localhost.localdomain to
> "computername". is there an easier way? 
	Yes - do something in %post or configure your DHCP server to set
hostname

> i'm pushing /etc/hosts to the
> computers with nis, can i get the info from there?
	Yes - but again, this should be accomplished with DHCP reservations
information.



One a side note - if you do a lot of kickstart installs consider this (with
PXE option!):

(the following assumes you've shoe-horned you ks.cfg file into the
initrd.img)

Make a boot CD based on the floppy:
1) Make a full-sized image since mkisofs need it:

   dd if=<etherboot image> conv=sync of=cdimage.img bs=1440k

2) Burn a bootable CD:
   mkdir bootcd/
   cp cdimage.img bootcd/
   mkisofs -b cdimage.img -c bootcat bootcd/ |cdrecord -dev 0,0,0 -v -eject
-
   (you will need to put the right cdrecord device options in)

3) Boot CD and never make another stinky floppy ever.

If you want to go one step further and do PXE/TFTP:
Then follow the instructions on http://etherboot.sourceforge.net for setting
up your DHCP and TFTP servers, and you are set.

Then only 'trick' is to make a TFTP image that etherboot wants from the boot
image above. To do this, grab the vmlinuz and initrd.img from the
images/pxeboot directory on the first CD of RH8.0 and run:

mknbi-linux --append="ks=<ks source> ramdisk_size=12000" vmlinuz
images/pxeboot/initrd.img > etherboot.img

where you can put any kernel args in append string.

Put the etherboot.img in the location you have the dhcp server setup to
point and you're set.



My %post $.02
Don



More information about the wplug mailing list