[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: How to install on the local hard drive



The way I would do this, is to determine if you are booting into a 2.4 or 2.6 kernel in %pre:

KERNEL_VERSION=`uname -r | cut -b 3`

Then use the set $(list-harddrives) to get the drives, and if 2.4, use c0d0, if 2.6, use c2d0.

-----Original Message-----
From: kickstart-list-bounces redhat com [mailto:kickstart-list-bounces redhat com] On Behalf Of Ximo Tur
Sent: Thursday, February 09, 2006 4:59 AM
To: Discussion list about Kickstart
Subject: RE: How to install on the local hard drive


Thanks Chip,

As I've just find out is a bit more complicated, the
machine has an embedded array controller and a PCI
one, with 2.4 kernels the embedded is cciss/c0d0 but
with 2.6 kernels is cciss/c2d0, so the CCISS driver is
initialising the devices in a different order.
I wonder if is there any way to have cciss/c0d0 as the
embedded one always.

 
Thanks

 --- "Shabazian, Chip"
<Chip Shabazian bankofamerica com> escribió:

> 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 redhat com
> [mailto:kickstart-list-bounces 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 redhat com
>
https://www.redhat.com/mailman/listinfo/kickstart-list
> 
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list redhat com
>
https://www.redhat.com/mailman/listinfo/kickstart-list
> 


---------------------
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 redhat com
https://www.redhat.com/mailman/listinfo/kickstart-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]