First page Back Continue Last page Overview Graphics
Example ks.cfg File – %pre section
#debug commented out: cat /proc/partitions
for f in /proc/ide/h* ; do
if [ $mymedia == "disk" ] ; then
if [ $mymedia != "disk" ] ; then
if [ -d /proc/scsi ] ; then
echo "unknown disk scheme. Exitting.."
Here I use the %pre section to manage both ide and scsi disks in a generic fashion. You will find a similar example in the Red Hat configuration guide.
First there is some logic to try and guess what kind of disks are on this host.
With this logic I set the shell variable $hd that I will then use with good old 'fdisk' to create my partitions.