From d527bb0b86d367682afe4e502b86028dfc0161c6 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 16 Jan 2019 14:37:50 -0500 Subject: [PATCH] Support SuSE style RSTe SuSE renames the RSTe volume in the middle. --- xCAT-server/share/xcat/install/scripts/getinstdisk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/install/scripts/getinstdisk b/xCAT-server/share/xcat/install/scripts/getinstdisk index 5d7acce3a..33daf5dc1 100644 --- a/xCAT-server/share/xcat/install/scripts/getinstdisk +++ b/xCAT-server/share/xcat/install/scripts/getinstdisk @@ -223,10 +223,15 @@ if [ -z "$install_disk" ]; then for file in $tmpfile*; do rm $file; done - if [ "$foundm2" == 0 -a -b /dev/md/Volume0_0 ]; then + if [ "$foundm2" == 0 -a -b /dev/md/Volume0_0 ] && grep suse /etc/os-release; then + install_disk="/dev/md/Volume0" + echo "[get_install_disk]The install_disk is $install_disk by RSTe detection." + elif [ "$foundm2" == 0 -a -b /dev/md/Volume0_0 ]; then install_disk="/dev/md/Volume0_0" + echo "[get_install_disk]The install_disk is $install_disk by RSTe detection." elif [ "$foundm2" == 0 -a -b /dev/md/Volume0 ]; then install_disk="/dev/md/Volume0" + echo "[get_install_disk]The install_disk is $install_disk by RSTe detection." fi fi rm -rf $tmpdir;