Skip to content

Show first-boot progress on the Mac splash - #568

Merged
maralcbr merged 4 commits into
quattro-upstreamfrom
mac/72-first-boot-progress
Sep 26, 2026
Merged

maralcbr merged 4 commits into
quattro-upstreamfrom
mac/72-first-boot-progress

Conversation

@maralcbr

@maralcbr maralcbr commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

Ticket 72. The Apple first boot sat on a static Omarchy logo for ~50 s between Limine and the account form. It now shows a progress bar with a short status line under it, in the theme's own bar assets, until account setup or SDDM takes over.

What changed

  • Theme (shared with x86): the Omarchy Plymouth script gains a generic system-update mode. plymouth system-update --progress=N shows the bar at N% and plymouth display-message text sits centered under it. Bar and text are sized like the installer's progress screen, relative to the logo (which stands for its 81x10-cell text logo): bar 34/81 of the logo's width and a tenth of its height, text one such row high and one row under the bar. Nothing changes unless a caller sends system-update: normal boots, plain messages and the password prompt render exactly as before.
  • Encryption (initrd): the bar follows the real percentage from cryptsetup reencrypt --progress-json under "Encrypting your drive...", then "Preparing your Mac for first boot..." while the boot files are rebuilt, with the bar easing forward while that step runs. The line names the step and the bar carries the progress, as in the installer: a step percentage in the text disagreed with a bar that spans the whole first boot.
  • First boot (real root): carries the bar on ("Setting up secure updates...", "Setting up your Mac's hardware...", "Almost ready..."), following the hardware queue as omarchy-provision-hardware drains it. plymouth-quit and plymouth-quit-wait now wait for first boot; before, the splash quit ~0.1 s after first boot started and the screen went blank.
  • Limine encryption: no update-grub (it ran twice, and wrote GRUB over Limine's BOOTAA64.EFI until the UKI step put Limine back) and no separate mkinitcpio -P: the UKI build is the one initramfs build. omarchy-mac-boot-update gains OMARCHY_MAC_BOOT_UPDATE_GRUB=0 for this. GRUB Macs keep update-grub + mkinitcpio -P.
  • Console: unit output stays at kmsg notice (off screen under quiet / loglevel=0), cryptsetup's JSON stays out of the journal, and the progress helpers print nothing without a splash.

Still open (not in this PR): the image ships grub explicitly, so the real-root Limine activation (setup/limine-boot.sh) still runs update-grub, and the real root builds the UKI twice more (that activation, then omarchy-provision-hardware's final rebuild after a hardware step adds apple_hid_modules.conf).

Testing

  • packages/omarchy-mac/boot/test/all as non-root in an Arch container: 148 ok. The loop-device encryption run (privileged container) passes, including the progress sequence and a Limine conversion that runs only omarchy-mac-boot-update with GRUB off; a GRUB Mac case covers update-grub + mkinitcpio -P.
  • New tests: JSON percent parsing and event order, nothing sent without a splash, the follower reads to EOF, the creep, first boot's progress with and without an encrypted boot and through a draining hardware queue, the plymouth-quit drop-ins, and the GRUB knob.
  • Related test/shell.d tests pass (image-deferred-hardware, mac-boot-*, mac-first-boot, mac-provision, plymouth-set, image-target-platform).
  • systemd-analyze verify clean for the encrypt, first-boot, plymouth-quit and plymouth-quit-wait units (M2 scratch root); first boot is not ordered after either plymouth-quit unit, so the new ordering has no cycle.
  • Theme: plymouthd 26.134.222 x11 renderer on Xvfb at 3456x2234, scale 2, with the pango and the freetype (initrd) label plugins: boot logo, a plain message and the password prompt are pixel-identical to the current theme; the update screens match a Terminus rendering of the installer screen at equal logo width.
  • M2 Max panel: the new mode rendered through DRM on a spare VT with a simulated first-boot sequence. The owner reviewed the first version and asked for a larger bar and text to match the installer; this version does that.

Second review: no blockers; its one medium point (hardware setup sitting at a static 97%) is fixed by following the hardware queue, and its re-check of that change was clean.

…encryption

The Omarchy Plymouth theme gains a generic system-update mode: plymouth
system-update --progress moves its bar and display-message text sits centered
under it. The Mac encrypt unit drives it from cryptsetup's JSON progress, and
first boot carries it on until account setup, which plymouth-quit now waits for.
On a Limine Mac the encryption no longer runs GRUB or a separate mkinitcpio -P:
the UKI build is the one initramfs build.
On a working image the hardware setup is first boot's longest stage, so the
bar gives it most of its width and moves as omarchy-provision-hardware drains
the queue, easing toward the next step while a long one runs.
… the percentage

In system-update mode the bar and its line now follow the installer's progress
screen, relative to the logo: 34/81 of its width, one tenth of its height, and
text one row high. The encryption line names the step without a percentage,
which disagreed with a bar that spans the whole first boot.
@maralcbr
maralcbr merged commit b2ba917 into quattro-upstream Sep 26, 2026
5 checks passed
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