Skip to content

If "reboot into BIOS Setup", skip UI - #5

Open
JohnAZoidberg wants to merge 1 commit into
mainfrom
os-indications
Open

JohnAZoidberg wants to merge 1 commit into
mainfrom
os-indications

Conversation

@JohnAZoidberg

Copy link
Copy Markdown
Member

This can happen in two cases:

  • From the OS, the user requests booting into the setup menu
    • On linux via systemctl reboot --firmware
    • On Windows via shutdown /r /fw /t 0
  • From the app by pressing F12

The latter case currently does not work on our hardware because the "app" is actually loaded as a driver with a depex before the setup menu. So pressing F12 will just land you back into the app. I never noticed this in my testing because I usually run it as an app from the UEFI shell.

This can happen in two cases:

- From the OS, the user requests booting into the setup menu
  - On linux via `systemctl reboot --firmware`
  - On Windows via `shutdown /r /fw /t 0`
- From the app by pressing F12

The latter case currently does not work on our hardware because the
"app" is actually loaded as a driver with a depex before the setup menu.
So pressing F12 will just land you back into the app.
I never noticed this in my testing because I usually run it as an app
from the UEFI shell.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
@github-actions

Copy link
Copy Markdown

📦 Binary Size Comparison (Nix Build)

Metric Base PR Difference
Size 756.50 KiB 757.00 KiB 📈 +512 bytes (.06%)
SHA256 26096630685804c2... a8e4a59b530cc36e... ⚠️ Changed
Full hashes
  • Base: 26096630685804c22e3fc17b3ce32141ed9a9304496612208eba2ece930ddb28
  • PR: a8e4a59b530cc36ea02b8329fce21980c252b85f5fb6807d5cf4175f962478c5

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Forced UI mode currently overrides the firmware-UI request and contradicts the intended skip behavior.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Skips the input-module UI when firmware setup boot is requested.

Changes:

  • Detects OsIndications firmware-UI requests.
  • Bypasses normal UI startup when requested.
File Description
src/​state_machine.rs Adds firmware-UI request detection.
src/​main.rs Uses the request to skip UI startup.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/main.rs
info!("Boot to firmware UI requested, skipping UI");
}

let reset = if force_ui || (show_ui && !setup_requested) {
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.

2 participants