Skip to content

qemu: Enable the boot menu on isapc - #8252

Open
Tominium wants to merge 1 commit into
utmapp:mainfrom
Tominium:fix/7920-isapc-boot-menu
Open

Tominium wants to merge 1 commit into
utmapp:mainfrom
Tominium:fix/7920-isapc-boot-menu

Conversation

@Tominium

@Tominium Tominium commented Dec 2, 2026

Copy link
Copy Markdown

Enable the SeaBIOS boot menu by default on isapc so users can boot from floppy without adding custom QEMU arguments. Preserve explicit -boot and --boot options 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=on was 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. Both menu=off override spellings worked, and the pc control 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.

Baseline hard-disk boot
Patched Esc prompt
FreeDOS booted from floppy

I have read the AI contribution guidelines and have followed them to the best of my ability.

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
}

@QEMUArgumentBuilder private var miscArguments: [QEMUArgument] {
if system.target.rawValue == "isapc" && !parsedUserArguments.contains("-boot") && !parsedUserArguments.contains("--boot") {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is "--boot" is it legal in QEMU?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make it easier to boot DOS from floppy

2 participants