Skip to content

Commit 66c271a

Browse files
authored
Fix partial implementation of ISO mounting
1 parent 258e652 commit 66c271a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/virtualbox.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ var storage = {
307307
var vm = options.vm || options.name || options.vmname || options.title,
308308
device_name = options.perhiperal_name || "IDE",
309309
type = options.type || "ide";
310-
logging.info('Adding "%s" controller named "%s" to %s', type, name,vm);
310+
logging.info('Adding "%s" controller named "%s" to %s', type, device_name,vm);
311311
var cmd = ['storagectl', vm, '--name', device_name, "--add", type];
312312
vboxmanage(cmd, callback);
313313
},
@@ -316,9 +316,10 @@ var storage = {
316316
device_name = options.perhiperal_name || "IDE",
317317
port = options.port || "0",
318318
device = options.device || "0",
319-
type = options.type || "dvddrive";
320-
logging.info('Adding "%s" controller named "%s" to %s', type, name,vm);
321-
var cmd = ['storageattach', vm, '--storagectl', device_name, "--port", port, "--device", device, "--type", type, "--medium", "medium"];
319+
type = options.type || "dvddrive",
320+
medium = options.medium;
321+
logging.info('Mounting "%s" to controller named "%s" on %s', medium, device_name,vm);
322+
var cmd = ['storageattach', vm, '--storagectl', device_name, "--port", port, "--device", device, "--type", type, "--medium", medium];
322323
vboxmanage(cmd, callback);
323324
}
324325
}

0 commit comments

Comments
 (0)