how to specify the kickstart file location for a redhat or centos installation

add a ks=<location option to the kernel command line as follows. the following assume the name of the file is ks.cfg:

floppy (vfat or ext2)

ks=hd:fd0:/ks.cfg ks=floppy ks=floppy:/path/path/ks.cfg

specify a driver disk

ks=floppy dd

boot cdrom

ks=cdrom:/ks.cfg

nfs server

ks=nfs:<server>:/path/ks.cfg

www server

ks=http://server/path/ks.cfg

disk (vfat or ext2)

ks=hd:<device>:/ks.cfg

file system (no mounts, in the initrd image)

ks=file:/ks.cfg