diff --git a/xCAT-server/share/xcat/install/scripts/getinstdisk b/xCAT-server/share/xcat/install/scripts/getinstdisk index 0c68ebeca..846e33734 100644 --- a/xCAT-server/share/xcat/install/scripts/getinstdisk +++ b/xCAT-server/share/xcat/install/scripts/getinstdisk @@ -234,6 +234,14 @@ if [ -z "$install_disk" ]; then fi rm -rf $tmpdir; +# Auto-sense an Intel RSTe/VROC software RAID and use it if no other install +# disk was found, before falling back to the hard-coded default below. +if [ -z "$install_disk" ] && [ -b /dev/md/Volume0_0 ]; then + install_disk="/dev/md/Volume0_0" +elif [ -z "$install_disk" ] && [ -b /dev/md/Volume0 ]; then + install_disk="/dev/md/Volume0" +fi + # Cannot find proper disk for OS install, select the default one "/dev/sda" if [ -z "$install_disk" ]; then install_disk="/dev/sda"