Fix bug with mount vboxfs in SLES 11 boxes. Issue #251

This commit is contained in:
Ivan Evtuhovich 2010-12-29 19:01:54 +03:00 committed by Mitchell Hashimoto
parent 8abdfe7b27
commit cdbe14c09e
1 changed files with 2 additions and 2 deletions

View File

@ -92,8 +92,8 @@ module Vagrant
def mount_folder(ssh, name, guestpath, sleeptime=5)
# Determine the permission string to attach to the mount command
perms = []
perms << "uid=#{vm.env.config.vm.shared_folder_uid}"
perms << "gid=#{vm.env.config.vm.shared_folder_gid}"
perms << "uid=`id -u #{vm.env.config.vm.shared_folder_uid}`"
perms << "gid=`id -g #{vm.env.config.vm.shared_folder_gid}`"
perms = " -o #{perms.join(",")}" if !perms.empty?
attempts = 0