From 009dac983430faa7767e89857591d585d5c928bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Thu, 23 Jul 2026 19:17:49 -0300 Subject: [PATCH] fix(getinstdisk): use an Intel RSTe/VROC software RAID when no other disk is found On a node whose OS disk is an Intel RSTe/VROC software RAID (/dev/md/Volume0_0 or /dev/md/Volume0), disk auto-detection finds nothing and getinstdisk falls back to the hard-coded /dev/sda. Prefer the VROC volume over that default. Only fires when no install disk was otherwise selected and the VROC device actually exists, so it cannot mis-select over a real disk and has no effect on non-VROC systems. The original commit hooked into a lenovobuild-specific M.2 detection block absent from master; adapted to master's fallback point. Not lab-validated (no VROC hardware available). Recovered from the unmerged lenovobuild branch (c6c70e5). --- xCAT-server/share/xcat/install/scripts/getinstdisk | 8 ++++++++ 1 file changed, 8 insertions(+) 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"