Aha! I see! Thank you Maarten. You and Kris have certainly nailed the answer. Thank you both! Phil On Monday 12 November 2007, Broekman, Maarten wrote: > Phil, > In the %pre section of your kickstart script, you can check to > see if there is data in various /proc files (/proc/partitions or > /proc/diskstats for example) and based on the device entries there, set > up the drive partitions... > > # cat /proc/partitions > major minor #blocks name > > 104 0 35561280 cciss/c0d0 > ... > 104 16 143367120 cciss/c0d1 > ... > 104 32 35561280 cciss/c0d2 > ... > > Like Kris, I have an HP hardware RAID controller in the way, but you > should see your pata/sata/ide drives in here as well. Based on that you > can write out a file during the %pre and then %include it for your disk > partitioning. > > I have the following line in my ks.cfg: > > %include /tmp/disk_map > > > Then in the %pre section, I check for the disk driver module (cciss, > BusLogic, mptscsi) and the size of the disk before writing > /tmp/disk_map. > > if lsmod | grep ^cciss ; then > # Check sizes > if size1 then > DRIVE_TYPE="a" > elif size2 then > DRIVE_TYPE="b" > ... > fi > elif lsmod | grep ^BusLogic ; then > DRIVE_TYPE="n" > elif lsmod | grep ^mptscsi ; then > DRIVE_TYPE="z" > fi > > case DRIVE_TYPE in > "a") > cat > /tmp/disk_map <<EOF > part /boot --fstype ext3 --size 100 --asprimary --ondisk cciss/c0d0 > part swap --fstype swap --size $SWAP --asprimary --ondisk cciss/c0d0 > part / --fstype ext3 --size 3072 --ondisk cciss/c0d0 > part /var --fstype ext3 --size 3072 --ondisk cciss/c0d0 > part /tmp --fstype ext3 --size 2048 --ondisk cciss/c0d0 > part /opt --fstype ext3 --size 4096 --grow --ondisk cciss/c0d0 > EOF > ;; > ... > esac > > Maarten Broekman > Email: maarten.broekman@xxxxxxx > > -----Original Message----- > From: redhat-list-bounces@xxxxxxxxxx > [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Phil Savoie > Sent: Monday, November 12, 2007 8:00 AM > To: redhat-list@xxxxxxxxxx > Subject: Re: 1st disk only automated install > > Thanks Kris for your reply. This would work on a case by case basis. > However, what I am looking for is a generic setting so that one > kickstart > file can be indiscriminately used against all of my machines. > > And this is what I am not sure how to do. > > Thank you, > > Phil > > On Sunday 11 November 2007, Kristoffer Knigga wrote: > > You can specify what drive partitions are made on using the "--ondisk > > <device name>" option. See below: > > > > part /boot --fstype ext3 --size 100 --asprimary --ondisk cciss/c0d0 > > part swap --size 24000 --asprimary --ondisk cciss/c0d0 > > part / --fstype ext3 --size 20000 --asprimary --ondisk cciss/c0d0 > > > > Note that I'm using HP RAID cards, so I get strange device names. It > > would probably be something like "--ondisk sda" in most cases. > > > > Kris > > > > > > -----Original Message----- > > From: redhat-list-bounces@xxxxxxxxxx > > [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Phil Savoie > > Sent: Sunday, November 11, 2007 8:14 PM > > To: General Red Hat Linux discussion list > > Subject: 1st disk only automated install > > > > Hi All, > > > > I have an environment where I have a number of machines that are > > pata/sata/ide. That is to say, each of these machines have 2 drives > > installed. These drives could be a pair pata or sata or ide drives in > > each > > box. > > > > My question is; is there a way, using kickstart to confine the install > > to only > > the normal boot drive and not have the install put any filesystems on > > the > > other drive? > > > > I have found that kickstart is using both drives on the install where > > I > > > only > > really want one disk to have the whole installed OS on it leaving the > > other > > untouched. I guess the kicker would be that I also need to have this > > same > > behaviour on the rest of my boxes which could be pata/sata/ide. > > > > Any help on this would be appreciated, please. > > > > Thank you, > > > > Phil > > > > -- > > redhat-list mailing list > > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > > https://www.redhat.com/mailman/listinfo/redhat-list > > > > ______________________________________________________________________ > > This email has been scanned by the MessageLabs Email Security System. > > For more information please visit http://www.messagelabs.com/email > > ______________________________________________________________________ > > -- > redhat-list mailing list > unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe > https://www.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list