2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

To fix issue 815, get the disk name with the smallest data

This commit is contained in:
XuWei 2016-03-21 01:17:09 -04:00
parent 474cbd7d6f
commit d450c4a447

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