Skip to content

Commit

Permalink
vm(qemu): do not try to eject drives on non-disk interfaces
Browse files Browse the repository at this point in the history
Fixes #5845
  • Loading branch information
osy committed Oct 31, 2023
1 parent 917f357 commit dacf074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Services/UTMQemuVirtualMachine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ extension UTMQemuVirtualMachine {
// an image bookmark was saved while QEMU was NOT running
let url = try URL(resolvingPersistentBookmarkData: localBookmark)
try await changeMedium(drive, to: url, isAccessOnly: !isMounting)
} else if isMounting {
} else if isMounting && (drive.imageType == .cd || drive.imageType == .disk) {
// a placeholder image might have been mounted
try await eject(drive)
}
Expand Down

0 comments on commit dacf074

Please sign in to comment.