Re: Specify just the first disk

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

 



Jesse Keating wrote:


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}
Cool this works on FC2.

Thanks.

--
Brian Akins
Senior Systems Engineer
CNN Internet Technologies



[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux