2
0
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:
Daniel Hilst
2026-07-27 10:34:30 -03:00
committed by GitHub
@@ -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"