Repository navigation
Conversation
Make floppy boot discoverable without custom QEMU arguments. Preserve explicit boot options and the firmware’s default boot device. Refs utmapp#7920 Assisted-by: Codex:gpt-6.2-sol
osy
reviewed
Dec 2, 2026
| } | ||
|
|
||
| @QEMUArgumentBuilder private var miscArguments: [QEMUArgument] { | ||
| if system.target.rawValue == "isapc" && !parsedUserArguments.contains("-boot") && !parsedUserArguments.contains("--boot") { |
Contributor
There was a problem hiding this comment.
What is "--boot" is it legal in QEMU?
Author
There was a problem hiding this comment.
Yes, QEMU accepts --boot as an alternate spelling of -boot. We tested both -boot menu=off and --boot menu=off in UTM. Both suppressed the menu, and UTM passed only the explicit boot option in each case. The check for both spellings keeps UTM from adding -boot menu=on when the user has already provided a boot option.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable the SeaBIOS boot menu by default on
isapcso users can boot from floppy without adding custom QEMU arguments. Preserve explicit-bootand--bootoptions and keep the existing default boot device.Resolves #7920.
Testing
A teammate tested separate baseline and patched UTM builds on an M3 Pro MacBook Pro running macOS 26.7.3 with Xcode 27.2. The baseline booted directly from the IDE disk unless
-boot menu=onwas supplied. With the patch, pressing Esc and selecting drive A booted FreeDOS 1.4 from floppy. Letting the prompt time out still booted the IDE disk. Bothmenu=offoverride spellings worked, and thepccontrol received no generated boot option.The regression test failed without the fix and passed with it on both platforms. Xcode reported 273 passed, 16 skipped, and 0 failed on macOS, and 218 passed and 0 failed on the iOS 27.2 simulator. The macOS skips require UTM’s separate signed VM test tier.
I have read the AI contribution guidelines and have followed them to the best of my ability.