From 8e312c99b2ed8a28dae65ff0f00104b99720c7be Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 19 Apr 2018 16:29:45 +0200 Subject: [vbox-src] add floppy host device --- .../plugins/virtualbox/includes/finalize_machine_config.inc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core') 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" \ -- cgit v1.2.3-55-g7522