Merge pull request #706 from harshavardhana/pr_out_fix_go_installation_check_on_amazon_instance

Fix go installation check on amazon instance
master
Harshavardhana 10 years ago
commit d0386dbce0
  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