Fix go installation check on amazon instance

master
Harshavardhana 10 years ago
parent 46ab20dcee
commit 75788c7a1d
  1. 7
      buildscripts/checkdeps.sh
  2. 3
      pkg/utils/scsi/scsi.go

@ -104,7 +104,12 @@ check_golang_env() {
exit -1
fi
if [ "$(dirname ${go_binary_path})" != "${GOROOT%%*(/)}/bin" ] ; then
local new_go_binary_path=${go_binary_path}
if [ -h "${go_binary_path}" ]; then
new_go_binary_path=$(/bin/readlink -f ${go_binary_path})
fi
if [[ !"$(dirname ${new_go_binary_path})" =~ *"${GOROOT%%*(/)}"* ]] ; then
echo "The go binary found in your PATH configuration does not belong to the Go installation pointed by your GOROOT environment," \
"please refer to Go installation document"
echo "https://github.com/minio/minio/blob/master/INSTALLGO.md#install-go-13"

@ -52,7 +52,8 @@ func GetDisks() (Disks, error) {
sysFiles, err := ioutil.ReadDir(sysFSDEVICES)
if err != nil {
return Disks{}, iodine.New(err, nil)
// may be an amazon instance, ignore this
return Disks{}, nil
}
scsidevices = filterdisks(sysFiles)

Loading…
Cancel
Save