Re: Always use local disk for driveorder
Richard Neuboeck <[email protected]> Wed, 01 Oct 2014 09:09:18 +0200
| Newsgroups | gmane.linux.redhat.kickstart.general |
|---|---|
| Message-ID | <[email protected]> |
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 _______________________________________________ Kickstart-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/kickstart-list
signature.asc
(application/pgp-signature, 203 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iEYEARECAAYFAlQrqJ4ACgkQnGohgOrO9GHLhwCfYpVZAbvaOZgeX9oDXrNg1BNQ atAAoMqMDD7ha87sWNaKhPchWrPLM+9+ =ePbh -----END PGP SIGNATURE-----