summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJonathan Bauer2018-04-19 16:29:45 +0200
committerJonathan Bauer2018-04-19 16:29:45 +0200
commit8e312c99b2ed8a28dae65ff0f00104b99720c7be (patch)
tree0ff3109f9b7b75b6489753c67c87f6003dcad98a /core
parent[vbox-src] cp xml to /tmp/vbox-last-config.$USER (diff)
downloadmltk-8e312c99b2ed8a28dae65ff0f00104b99720c7be.tar.gz
mltk-8e312c99b2ed8a28dae65ff0f00104b99720c7be.tar.xz
mltk-8e312c99b2ed8a28dae65ff0f00104b99720c7be.zip
[vbox-src] add floppy host device
Diffstat (limited to 'core')
-rwxr-xr-xcore/modules/vbox-src/data/opt/openslx/vmchooser/plugins/virtualbox/includes/finalize_machine_config.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/modules/vbox-src/data/opt/openslx/vmchooser/plugins/virtualbox/includes/finalize_machine_config.inc b/core/modules/vbox-src/data/opt/openslx/vmchooser/plugins/virtualbox/includes/finalize_machine_config.inc
index d0e4f75f..61605b42 100755
--- a/core/modules/vbox-src/data/opt/openslx/vmchooser/plugins/virtualbox/includes/finalize_machine_config.inc
+++ b/core/modules/vbox-src/data/opt/openslx/vmchooser/plugins/virtualbox/includes/finalize_machine_config.inc
@@ -46,6 +46,12 @@ setup_floppies() {
"hotpluggable=false" \
"port=0" \
"device=0"
+ if notempty FLOPPY_0; then
+ add_node \
+ '/VirtualBox/Machine/StorageControllers/StorageController[@name="Floppy"]/AttachedDevice[@device="0"]' \
+ "HostDrive" \
+ "src=${FLOPPY_0}"
+ fi
add_node \
'/VirtualBox/Machine/StorageControllers/StorageController[@name="Floppy"]' "AttachedDevice" \
"type=Floppy" \