Arbitrary mount options can be passed to shared folders with `:extra` [GH-551]
This commit is contained in:
parent
14d61f61ba
commit
a8fe342520
|
@ -41,6 +41,8 @@
|
|||
if they exist. [GH-631]
|
||||
- Added `--provision-with` to `up` which configures what provisioners run,
|
||||
by shortcut. [GH-367]
|
||||
- Arbitrary mount options can be passed with `:extra` to any shared
|
||||
folders. [GH-551]
|
||||
- Removed Thor as a dependency for the command line interfaces. This resulted
|
||||
in general speed increases across all command line commands.
|
||||
- Linux uses `shutdown -h` instead of `halt` to hopefully more consistently
|
||||
|
|
|
@ -70,7 +70,8 @@ Please change your configurations to match this new syntax.
|
|||
:create => false,
|
||||
:owner => nil,
|
||||
:group => nil,
|
||||
:nfs => false
|
||||
:nfs => false,
|
||||
:extra => nil
|
||||
}.merge(opts || {})
|
||||
end
|
||||
|
||||
|
|
|
@ -57,6 +57,7 @@ module Vagrant
|
|||
def mount_folder(name, guestpath, options)
|
||||
# Determine the permission string to attach to the mount command
|
||||
options = "-o uid=`id -u #{options[:owner]}`,gid=`id -g #{options[:group]}`"
|
||||
options += ",#{options[:extra]}" if options[:extra]
|
||||
|
||||
attempts = 0
|
||||
while true
|
||||
|
|
|
@ -100,6 +100,7 @@ module Vagrant
|
|||
|
||||
# Mount the folder with the proper owner/group
|
||||
options = "-o uid=`id -u #{owner}`,gid=`id -g #{group}`"
|
||||
options += ",#{options[:extra]}" if options[:extra]
|
||||
vm.channel.execute("#{vm.config.solaris.suexec_cmd} /sbin/mount -F vboxfs #{options} #{name} #{guestpath}")
|
||||
|
||||
# chown the folder to the proper owner/group
|
||||
|
|
Loading…
Reference in New Issue