From e341d402548416bcee489232fe0dd24fe759830a Mon Sep 17 00:00:00 2001 From: osy <50960678+osy@users.noreply.github.com> Date: Thu, 1 Sep 2022 15:12:15 -0700 Subject: [PATCH] config(qemu): fix floppy drive argument not correctly generated Fixes #4362 --- Configuration/UTMQemuConfiguration+Arguments.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Configuration/UTMQemuConfiguration+Arguments.swift b/Configuration/UTMQemuConfiguration+Arguments.swift index ae7e63c2b..8879a614a 100644 --- a/Configuration/UTMQemuConfiguration+Arguments.swift +++ b/Configuration/UTMQemuConfiguration+Arguments.swift @@ -496,6 +496,8 @@ import Foundation busindex += 1 "drive=drive\(drive.id)" f() + } else { + realInterface = drive.interface } } else { realInterface = drive.interface @@ -531,7 +533,7 @@ import Foundation } if drive.isReadOnly { "readonly=on" - } else { + } else if !drive.isExternal { "discard=unmap" "detect-zeroes=unmap" }