How to install on the local hard drive

Shabazian, Chip Chip.Shabazian at bankofamerica.com
Wed Feb 8 19:22:39 UTC 2006


So you do NOT want to install to cciss/c0d0, but to sda instead, or the other way around?

You can get a list of available drives in your %pre with this:
set $(list-harddrives)

the returned values will be the drives and their sizes, so $1 is the first drive, $2 is the first drive size, $3 is the second drive, etc.

Once you have a list of available drives, you can put some scripting in place to use the drives you want, write out a partition table, then include that partition table in the command section using %include.  

So in your command section, you would have:
%include /tmp/partinfo

And in your %pre, you would have:
set $(list-harddrives)
cat << EOF >> /tmp/partinfo
part / --fstype ext3 --size=512 --grow --ondisk=$d1
part swap --recommended --ondisk=$d1
EOF

Using basic scripting and if statements, you can then include or exlude cciss devices

-----Original Message-----
From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of Ximo Tur
Sent: Wednesday, February 08, 2006 10:52 AM
To: Kickstart Discussion list Kickstart
Subject: How to install on the local hard drive

Hi,

I've been using a ks to install machines attached to
arrays without issue using 2.4 kernels. 
But I am having issues trying to install using 2.6
kernels, it looks like the CCISS driver is
initialising the devices in a different order with the
newer kernel and tries to do the installation on the
arrays.
So where the local disk before was cciss/c0d0 now this
is the SCSI controller.
Is there any way to specify on the ks to use the local
hard drive?? or way for the install to determine the
local disk?

Thanks.



---------------------
Ximo Tur ---> http://www.flickr.com/photos/electrostatico/ 
"Gentlemen, you can't fight in here! This is the War Room!"
Dr. Strangelove, Or: How I Learned To Stop Worrying And Love The Bomb (1964)
----------------------



		
______________________________________________ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

_______________________________________________
Kickstart-list mailing list
Kickstart-list at redhat.com
https://www.redhat.com/mailman/listinfo/kickstart-list




More information about the Kickstart-list mailing list