mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-21 08:33:20 +00:00
Merge pull request #7664 from VersatusHPC/harvest/getinstdisk-vroc
fix(getinstdisk): use an Intel RSTe/VROC RAID when no other disk is found
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user