Specify just the first disk
Jesse Keating
jkeating at j2solutions.net
Tue Apr 27 20:46:38 UTC 2004
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20040427/c338e021/attachment.sig>
More information about the Kickstart-list
mailing list