0.10.2: driver ISO (virtio-win) in the create wizard, separate download row, docs
This commit is contained in:
1 parent
d8bf6ff475
commit
f4160054ab
6 files changed
+55
-11
No files matched your search
+11
-3
@@ -192,12 +192,20 @@ if ($verb === 'create' && !empty($job['switch'])) {
|
||||
|
||||
// optional: attach the chosen ISO and boot right away
|
||||
if ($verb === 'create' && $rc === 0 && empty($timedOut)) {
|
||||
if (!empty($job['iso'])) {
|
||||
$att = vmm_iso_attach($name, [(string)$job['iso']]);
|
||||
$isos = [];
|
||||
foreach (['iso', 'driver_iso'] as $key) {
|
||||
if (!empty($job[$key])) {
|
||||
$isos[] = (string)$job[$key];
|
||||
}
|
||||
}
|
||||
if ($isos !== []) {
|
||||
$att = vmm_iso_attach($name, $isos);
|
||||
if (isset($att['error'])) {
|
||||
joblog($log, 'iso attach failed: ' . $att['error']);
|
||||
} else {
|
||||
joblog($log, 'iso attached: ' . basename((string)$job['iso']));
|
||||
foreach ($isos as $isoPath) {
|
||||
joblog($log, 'iso attached: ' . basename($isoPath));
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!empty($job['autostart']) && !empty($job['iso'])) {
|
||||
|
||||
Reference in new issue
Block a user