From d450c4a447dc7c51cea4fd088c824eacbc783684 Mon Sep 17 00:00:00 2001 From: XuWei Date: Mon, 21 Mar 2016 01:17:09 -0400 Subject: [PATCH] To fix issue 815, get the disk name with the smallest data --- 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 8d9669d80..6f6c85037 100644 --- a/xCAT-server/share/xcat/install/scripts/getinstdisk +++ b/xCAT-server/share/xcat/install/scripts/getinstdisk @@ -186,7 +186,7 @@ if [ -z "$install_disk" ]; then done if [ "$install_file" ] && [ -s $install_file ]; then - install_disk=/dev/$(cat $install_file | grep -v "^$" | sort -t : -k 2 -b | cut -d " " -f1 | head -n 1) + install_disk=/dev/$(cat $install_file | grep -v "^$" | sort -k 2 -b | cut -d " " -f1 | head -n 1) echo "[get_install_disk]The install_disk is $install_disk by sorting $file_pre and DRIVER." fi rm $tmpfile*;