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:
parent
474cbd7d6f
commit
d450c4a447
@ -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*;
|
||||
|
Loading…
x
Reference in New Issue
Block a user