2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 09:36:41 +00:00

Merge pull request #820 from xuweibj/I815

To fix issue 815, get the disk name with the smallest data
This commit is contained in:
Xiaopeng Wang 2016-03-21 14:34:27 +08:00
commit 08bac0d779

View File

@ -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*;