From 2222e61612e051042d999eb3a5016e7824a862dd Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 16 Jan 2019 15:02:20 -0500 Subject: [PATCH] Adapt SLES to only modify SLES12 SLE15 uses Volume0_0, not Volume0 like SLES12 --- xCAT-server/share/xcat/install/scripts/getinstdisk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/install/scripts/getinstdisk b/xCAT-server/share/xcat/install/scripts/getinstdisk index 33daf5dc1..14c232748 100644 --- a/xCAT-server/share/xcat/install/scripts/getinstdisk +++ b/xCAT-server/share/xcat/install/scripts/getinstdisk @@ -223,7 +223,7 @@ if [ -z "$install_disk" ]; then for file in $tmpfile*; do rm $file; done - if [ "$foundm2" == 0 -a -b /dev/md/Volume0_0 ] && grep suse /etc/os-release; then + if [ "$foundm2" == 0 -a -b /dev/md/Volume0_0 ] && grep SLES /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