Back to Engineering Blog
Engineering Field Notes 3 min read

Two Config Keys That Didn't Exist, and a Boot Theme That Was Never Installed

Our first rEFInd theme draft invented config keys that look plausible and don't exist, and a runbook claimed the theme was verified by a reboot when the boot partition showed a stock config. Both were caught by reading the real source of truth.

Jason NevillBy , Houston, TX
#rEFInd#Verification#Documentation#Boot

Key Architectural Takeaways

  • Check every config directive against the project's own documentation; a draft can invent keys that look exactly right.
  • A claim that something was verified is a hypothesis until you read the actual state on disk.
  • Generate small, crisp icons from code rather than from an image model, so every asset is reproducible and editable.

The challenge

We wanted the laptop's boot menu to look like it belonged to the lab: matte-black ground, one green accent, hairline line art. That meant a rEFInd theme with an icon for each OS, a selection highlight and a banner.

Icons from code, not from a model

Image generators are weak at exactly this kind of asset: crisp, tiny, single-colour line art. So the theme is drawn procedurally with Pillow. Every icon is built from primitive shapes at 4x supersampling and downscaled with LANCZOS, and the whole set regenerates from one script. There are no hand-edited rasters and no font dependency, so the theme is reviewable as code and repeatable on any machine.

Catch one: keys that don't exist

The first draft of theme.conf set reset_icon, shutdown_icon and similar keys. They read naturally and they are not real rEFInd options. Checking against rEFInd's own theme documentation showed the real mechanism: tool-row icons are picked up automatically by filename convention (func_reset.png, func_shutdown.png, func_exit.png, func_firmware.png). Invented keys give you a config that reads correctly and does nothing, which is a harder failure to spot than an error.

Catch two: a theme that was never installed

The build notes and an open pull request both stated that the theme had been installed and confirmed through a real reboot. When we mounted the ESP that the firmware's rEFInd entry actually boots from, the config was completely stock: no themes/ directory, no include line, no custom stanzas. We cross-checked which partition was the real one with efibootmgr -v and lsblk partition UUIDs rather than assuming. The "verified" claim was wrong, and the open pull request was flagged not to merge as written until its text said what was actually true.

The banner at every boot also turned out to belong to a third asset, an earlier crest-style banner that neither theme explained. We noted it and moved on instead of guessing.

Verification

The corrected state was confirmed by reading the files on the mounted ESP, not by remembering a reboot. The icon-rendering problems that followed have their own write-up.

Takeaway

Two rules came out of this. First, a config directive is real only if the project's documentation says so. Second, "confirmed working" in a document is a claim about the past; the disk is the present. We now read the artifact before repeating the claim.

Follow the build on LinkedIn or by RSS.

All Articles

Follow the build

Questions about the build, or spotted something we got wrong? Find us on LinkedIn and GitHub.