Always use local disk for driveorder

Richard Neuboeck hawk at tbi.univie.ac.at
Wed Oct 1 07:09:18 UTC 2014


Hi,

I had a similar problem. As it has already been described one possible
way is to use /dev/disk/by-path/pci-*-usb-* to check for USB devices. In
my case I had to consider different partition layouts depending on the
disks available so I created a pre-install script that checks which
disks are usable for the installation, create a layout accordingly and
include that again in the kickstart config (%include /tmp/partition-schema)

http://fedoraproject.org/wiki/Anaconda/Kickstart#Chapter_4._Pre-installation_Script

For checking USB devices another way would be
  udevadm info --query=path --name=$dev | grep -q -e '/usb'

In your pre install script you could i.e. check for the availability of
an HBA and if one is present consider the size of the devices or the
'manufacture name' when probing the device to make your choice which
device to use and which to ignore. I would imagine that the SAN disk is
larger than an internal disk, or the manufacture is the one that
provides the HBA, so this may be a criterion.

-Richard


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20141001/8f38758e/attachment.sig>


More information about the Kickstart-list mailing list