2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

Merge pull request #565 from xuweibj/I563

to fix issue 563&564
This commit is contained in:
Xiaopeng Wang 2016-01-04 19:33:56 +08:00
commit f7ff5867a7

View File

@ -28,9 +28,9 @@ if [ -z "$install_disk" ]; then
dev_type=$(udevadm info --query=property --name=/dev/$entry | grep -i "DEVTYPE" | awk -F = '{print $2}' | tr A-Z a-z)
if [ "$dev_type" == "disk" ]; then
disks=$disks"$entry"
disks=$disks" $entry"
elif [ "$dev_type" == "partition" ]; then
partitions=$partitions"$entry"
partitions=$partitions" $entry"
fi
done
@ -114,15 +114,15 @@ if [ -z "$install_disk" ]; then
"ata_piix4"|"PMC MaxRAID"|"ahci"|"megaraid_sas")
echo "$disk $disk_wwn" >> /tmp/tmp_firstdisks
echo "Add disk:" $disk $driver $disk_wwn " into firstdisks" >> tmp/tmp/getinstalldisk_log
echo "Add disk:" $disk $driver $disk_wwn " into firstdisks" >> tmp/getinstalldisk_log
;;
"mptsas"|"mpt2sas"|"mpt3sas")
echo "$disk $disk_wwn" >> /tmp/tmp_seconddisks
echo "Add disk:" $disk $driver $disk_wwn " into seconddisks" >> tmp/tmp/getinstalldisk_log
echo "Add disk:" $disk $driver $disk_wwn " into seconddisks" >> tmp/getinstalldisk_log
;;
*)
echo "$disk $disk_wwn" >> /tmp/tmp_thirddisks
echo "Add disk:" $disk $driver $disk_wwn " into thirddisks" >> tmp/tmp/getinstalldisk_log
echo "Add disk:" $disk $driver $disk_wwn " into thirddisks" >> tmp/getinstalldisk_log
;;
esac