Skip to content

USB Forge boot menu theme, plus cleanup of duplicated logic (v0.3.0) - #4

Merged
SkippyNet merged 2 commits into
mainfrom
cleanup/unused-logic
Nov 8, 2026
Merged

SkippyNet merged 2 commits into
mainfrom
cleanup/unused-logic

Conversation

@SkippyNet

Copy link
Copy Markdown
Owner

What does this change?

USB Forge boot menu theme. After the ISOs are copied, the build writes a USB Forge GRUB theme and plugin config (ventoy/ventoy.json, ventoy/theme/usb-forge/) to the data partition. The boot menu now uses the app's dark colours, logo and wordmark instead of the stock look, and the boot loader's own name/version line is drawn in the background colour so it doesn't show. This uses the boot loader's supported theme plugin: no boot loader binaries are changed and Secure Boot is unaffected. Writing the theme is non-fatal; if it fails the drive keeps the stock look and the log says so. Images are generated by assets/boot-theme/make-theme.ps1.

Cleanup of duplicated and misleading logic:

  • Linux: the lsblk test now exercises the real parser (parse_disks) instead of a copy that had drifted.
  • catalog::sums_after_sha256_marker renamed to sha256_line_matching (it never looked for a marker).
  • The job reuses net::cancelled; the UI and job share disks::RESERVED_BYTES; each tool row reads the version lookups once instead of three times.
  • "Waiting for Windows to mount..." is now platform-neutral.
  • Unused Clone on Plan removed; doc typos fixed.

Checklist

  • cargo fmt --all --check, cargo clippy --workspace --all-targets --locked -- -D warnings and cargo test --workspace --locked pass
  • Tested on: Windows 11 (fmt/clippy/tests + app launch), Ubuntu via WSL (fmt/clippy/tests)
  • New downloads come from the project's official source and are pinned to a SHA-256 that project publishes (no new downloads)
  • No new dependencies, or each new dependency is explained below
  • Version bumped in Cargo.toml (and Cargo.lock) for this feature or fix (0.2.0 → 0.3.0)
  • No changes to disk-safety filtering, the updater, signing, or CI, or those changes are explained below

Notes for reviewers

New tests: boot_theme checks the config points at the bundled theme, every image theme.txt uses is bundled and is a PNG, the hidden-text colour matches the theme background, and installing writes the expected files.

🤖 Generated with Claude Code

SkippyNet and others added 2 commits November 8, 2026 13:28
Boot menu theme:
- Write a USB Forge GRUB theme and plugin config to the data partition after the
  ISOs are copied (boot loader theme plugin; no change to boot loader binaries
  or Secure Boot). Non-fatal: on failure the drive keeps the stock look.
- assets/boot-theme: theme.txt plus images generated by make-theme.ps1 in the
  app's colours.

Cleanup:
- Linux: test the real lsblk parser (parse_disks) instead of a copy of it.
- Rename catalog::sums_after_sha256_marker to sha256_line_matching (it never
  looked for a marker).
- Reuse net::cancelled in the job; share disks::RESERVED_BYTES between the UI
  and the job; look up each tool row once instead of three times.
- Platform-neutral "Waiting for the new partition to mount..." text.
- Drop unused Clone on Plan; fix doc typos.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T18:57:40.004592Z 6891ac1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SkippyNet
SkippyNet merged commit 29a1a64 into main Nov 8, 2026
3 checks passed
@SkippyNet
SkippyNet deleted the cleanup/unused-logic branch November 8, 2026 19:03
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.

1 participant