Skip to content

Commit

Permalink
config(qemu): fix floppy drive argument not correctly generated
Browse files Browse the repository at this point in the history
Fixes #4362
  • Loading branch information
osy committed Sep 1, 2022
1 parent ebec474 commit e341d40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Configuration/UTMQemuConfiguration+Arguments.swift
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,8 @@ import Foundation
busindex += 1
"drive=drive\(drive.id)"
f()
} else {
realInterface = drive.interface
}
} else {
realInterface = drive.interface
Expand Down Expand Up @@ -531,7 +533,7 @@ import Foundation
}
if drive.isReadOnly {
"readonly=on"
} else {
} else if !drive.isExternal {
"discard=unmap"
"detect-zeroes=unmap"
}
Expand Down

0 comments on commit e341d40

Please sign in to comment.