Repository navigation
Wait for boot splash readiness before switch_root - #20555
Merged
Merged
Conversation
Contributor
[Medium impact] The PR appears safe to merge. SummaryThe PR waits for the boot splash to finish starting before
Reviews (3) · Last reviewed commit: "Stop wait_native promptly on stopping an..." · Reviewed by Greptile |
cursor Bot
pushed a commit
to mark-groves/omarchy
that referenced
this pull request
Nov 28, 2026
* Wait for boot splash readiness before switch_root and avoid failing hold when gone * Stop wait_native promptly on stopping and run hold test against fixture paths
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the
omarchy-splash-hold.serviceboot failure (the splash has no display open) seen on fast unencryptedaarch64boots (blocking omacom/omarchy-iso#599).Root cause
Reproduced in an
aarch64KVM VM booting UEFI (AAVMF) +virtio-gpu-pci+systemd:encryptdoes not callplymouth ask-for-password(which waits for/run/omarchy-splash/ready), soinitreachesrun_latehook()and executesswitch_rootwhileswayis still ~100 ms into startup.switch_rootdeletes the initramfs rootfs and moves/devand/sysaway mid-initialization:xkbcommonfails to find/usr/share/xkeyboard-config-2wlrootsfailsdrm_dumballocation (Cannot use DRM dumb buffers with non-primary DRM FD) and disablesVirtual-1swayfails to exec/usr/lib/omarchy-splash/ui-launchand open/dev/urandom, then disconnects and exitssession.pidwas still alive whenrun_latehook()checked it,omarchy-splash-hold.servicewas enabled anyway; ~1.5 s later in real root,holdfound no open DRM display onswayand exited1.Changes
default/splash/session:/run/omarchy-splash/startingonce a display has been picked (pastwait_native 80), and remove/run/omarchy-splash/readyimmediately whenswayexits (avoiding a stalereadymarker during exit or firmware-to-native restart).etc/initcpio/hooks/omarchy-splash(run_latehook):switch_root, if the splash has already picked a display ($run/starting) but is not yet ready ($run/ready), wait up to 5 s (in 0.1 s steps, typically ~0.1–0.3 s) for$run/readywhilesessionis alive.wait_native(no early KMS) or exited before becoming ready, tear it down viastopand return without schedulingomarchy-splash-stop.service/omarchy-splash-hold.service(avoiding stalling unencrypted no-early-KMS boots for 8 s).default/splash/hold:holdruns (e.g. Escape pressed afterswitch_root, orsimpledrmunbound by the native GPU driver in the real root), log whethersessionis still running tostderr, notifysystemd-notify --ready, skip creating$adopt, and exit0instead of degrading the boot.run_latehookcoverage intest/shell.d/boot-splash-session-test.sh(waits forstarting->ready, stops immediately if still waiting for a GPU, stops cleanly ifsessiondies beforeready).holdcoverage intest/shell.d/boot-splash-hold-test.sh.Verification
test/shell.d/boot-splash-*-test.shshell tests pass.aarch64KVM VM (AAVMF,acpi=on,virtio-gpu-pci,switch_root->systemd):swaycrashed at0.179 sduringswitch_root;omarchy-splash-hold.servicefailed withthe splash has no display open.sway+quickshellreached direct scan-out at0.300 s,omarchy-splash-hold.serviceheld/dev/dri/card0and created/run/omarchy-splash-hold/adopt, andomarchy-splash-stop.serviceshut the splash down cleanly (status=0/SUCCESS).