Find another way

This commit is contained in:
Michel Roux 2017-02-07 10:44:55 +01:00
parent ef6f582b5a
commit 2155194f6d
1 changed files with 4 additions and 6 deletions

View File

@ -38,12 +38,6 @@ class VirtualBox {
if (opts.writable === false || opts.readonly) args.push('--readonly')
if (opts.transient) args.push('--transient')
let that = this;
this.command(args, function () {
const args2 = ['setextradata', 'default', 'VBoxInternal2/SharedFoldersEnableSymlinksCreate/' + name, '1']
that.command(args2, done)
})
}
removeShare() {
@ -166,6 +160,10 @@ class Shares {
else this.vm.addShare(name, hostPath, opts, next)
},
(next) => {
this.vm.command(['setextradata', 'default', 'VBoxInternal2/SharedFoldersEnableSymlinksCreate/' + name, '1'], next)
},
(next) => {
this.getFilesystem(name, (err, fs) => {
if (err) return next(err)