On Tuesday 27 April 2004 13:35, Brian Akins wrote: > But, If I have two disks, it insists on putting the swap on the > second. I was using the ondisk stuff to force it to use the first > disk. Now I have to support hda, ida/whatever instead of just sda. > This is RHAS2.1, so using the pre and include trick I have found > elsewhere doesnot work. In the %pre section, use fdisk (or something like that) to probe which disks are present, awk out the actual disk fdisk -l |awk '/^Disk/ {print $2}' |awk -F "/" '{print $3}' |sed -e 's/://' Something similar to that. Then use this value (in a variable) for your --ondisk=${firstdisk} -- Jesse Keating RHCE (geek.j2solutions.net) Fedora Legacy Team (www.fedoralegacy.org) GPG Public Key (geek.j2solutions.net/jkeating.j2solutions.pub) Was I helpful? Let others know: http://svcs.affero.net/rm.php?r=jkeating
Attachment:
pgpuq4MET8PUP.pgp
Description: signature