Skip to content

Show first-boot encryption progress on the splash's bar - #18

Merged
scottjones merged 3 commits into
mainfrom
boot/plymouth-update-progress
Oct 8, 2026
Merged

scottjones merged 3 commits into
mainfrom
boot/plymouth-update-progress

Conversation

@maralcbr

@maralcbr maralcbr commented Oct 8, 2026

Copy link
Copy Markdown
Member

Summary

During first-boot encryption the splash showed no bar, and its status lines sat in the top-left corner. omarchy-mac-encrypt and omarchy-mac-first-boot report through plymouth system-update and display-message, but the Omarchy theme registers no system-update handler and draws messages at (10, 10).

 mkinitcpio build
   plymouth            # copies the Omarchy theme into the image
   ...
   omarchy-mac-encrypt
+    BUILDROOT omarchy.script = theme + omarchy-mac-plymouth.script   (temp file + mv)

 omarchy-mac-plymouth.script (appended, initramfs only)
+  SetSystemUpdateFunction  -> show the bar, start it empty, progress / 100
+  SetBootProgressFunction  -> ignored while first boot reports its own progress
+  SetDisplayMessageFunction-> centred under the bar, Tokyo Night foreground
+  SetRefreshFunction       -> theme's refresh, then keep the message under the bar

The installed theme keeps omarchy-settings' bytes, so pacman's file checks and the image inspection (check_candidate_files, check_boot_splash) are unchanged. The existing 91-omarchy-mac-boot-initramfs.hook already rebuilds the initramfs for usr/lib/omarchy/initcpio/*.

Evidence

  • Before: owner's install: no bar during encryption, "Encrypting your drive..." in the top-left corner.
    After: not yet seen on hardware; needs a fresh encrypted install.
  • Plymouth's own script-parse.c (compiled against libply 26.134) parses the theme plus addendum, for the pinned runtime's theme and the current one; a broken control script fails.
  • omarchy-mac-boot/test/mac-plymouth-progress-test.sh: the image gets theme + addendum, a hardlinked installed theme is untouched, an image without the theme gets nothing.
  • test/integration/mac-plymouth-theme-test.sh: every function and sprite the addendum uses exists in the runtime theme, its bar still takes a 0-1 fraction, and it still has no system-update handler of its own.
  • omarchy-mac-boot/test/all and test/integration/all pass in an Arch Linux ARM container against the pinned runtime.

Merge Danger

Door: two-way

The next initramfs rebuild after a revert drops the addendum.

Blast Radius: splash

On every systemd Mac boot, Plymouth status messages are drawn centred under the bar instead of white in the top-left corner. The password prompt is unchanged. A script error would drop the theme to Plymouth's fallback, which the parser check guards against.

omarchy-mac-encrypt and omarchy-mac-first-boot report through plymouth system-update and display-message, but the Omarchy theme registers no system-update handler and draws messages at (10, 10). So the bar stayed hidden while the drive encrypted, and the status lines sat in the top-left corner.

The encrypt install hook now appends an addendum to the initramfs copy of the theme: system-update shows the bar and drives it from 0-100, boot progress stops moving it meanwhile, and messages are centred under it. The installed theme keeps omarchy-settings' bytes, so the image inspection and pacman's file checks are unchanged. Plymouth's own parser accepts the theme with the addendum, for the pinned runtime's theme and the current one.
The theme re-lays out its sprites when a late display grows the window, but the message stayed where it was first drawn. The addendum now re-places it on every refresh, after the theme's own refresh. The integration test also pins the theme's 0-1 bar fraction, and the manual says messages are centred on every Mac boot.
@maralcbr
maralcbr requested a review from scottjones as a code owner October 8, 2026 08:11
…yout

Removing the re-placement from the refresh wrapper now fails the package test, as review asked. The test's header is three lines and its numeric checks use (( )).
@scottjones
scottjones merged commit 258bd3e into main Oct 8, 2026
7 checks passed
scottjones added a commit that referenced this pull request Oct 9, 2026
Brings in #18, #19, #20 and #22. The runtime pin conflicted: main pins
omacom/omarchy 4d9bdc49 (#14431), which has no platform-root fingerprint
detection, so this branch now pins omacom/omarchy#14675's head
f317ea50, the fingerprint-readers detector on #14431. Move it to the
merge commit once #14675 lands. omarchy-mac stays at #12's 0.2.0; main
is still at 0.1.0.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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