Repository navigation
Refresh the Snapdragon device tree list before every boot image build - #17934
Merged
Merged
Conversation
DeviceTreeAuto takes literal paths, and dtb-uki.sh wrote them once at install. A kernel update that adds or renames a tree built a boot image without it, so a machine whose hardware IDs moved to the new tree booted with none. Move the list into omarchy-update-qualcomm-device-trees and let limine run it from /etc/boot/hooks/pre.d before each build. Without --install it only refreshes Omarchy's own list, leaves the Surface Pro 11's pinned tree alone, and never stops a build.
Contributor
[Medium impact] The PR appears safe to merge; no new actionable issues remain. SummaryRefreshes Snapdragon device-tree paths before each boot image build.
|
The command no longer runs under the installer's errexit, so a failed copy or write went on and could rename a cut-off file over uki.conf. Check every write and discard the copy instead, still exiting 0.
A migration run that stopped after refreshing the list read the new list as its starting point on retry and skipped the rebuild. Mark the rebuild owed first and take it back when the list stays the same.
Contributor
Author
cursor Bot
pushed a commit
to mark-groves/omarchy
that referenced
this pull request
Nov 6, 2026
…omacom#17934) * Refresh the Snapdragon device tree list before every boot image build DeviceTreeAuto takes literal paths, and dtb-uki.sh wrote them once at install. A kernel update that adds or renames a tree built a boot image without it, so a machine whose hardware IDs moved to the new tree booted with none. Move the list into omarchy-update-qualcomm-device-trees and let limine run it from /etc/boot/hooks/pre.d before each build. Without --install it only refreshes Omarchy's own list, leaves the Surface Pro 11's pinned tree alone, and never stops a build. * Keep the UKI configuration when the device tree list can't be written The command no longer runs under the installer's errexit, so a failed copy or write went on and could rename a cut-off file over uki.conf. Check every write and discard the copy instead, still exiting 0. * Record the owed boot image rebuild before the list changes A migration run that stopped after refreshing the list read the new list as its starting point on retry and skipped the rebuild. Mark the rebuild owed first and take it back when the list stays the same.
birkskyum
added a commit
to birkskyum/omarchy
that referenced
this pull request
Nov 8, 2026
…ice-trees omacom#17934 moved the list of device tree names from dtb-uki.sh into the command that refreshes it before every boot image build.
omarchybot
added a commit
to birkskyum/omarchy
that referenced
this pull request
Nov 9, 2026
…-device-trees omacom#17934 moved the device tree list out of install/hardware/qualcomm/dtb-uki.sh into bin/omarchy-update-qualcomm-device-trees, which limine also runs before every boot image build. The own-tree match moves with it, so that refresh keeps embedding only the machine's tree, and follows a kernel update that renames it. dtb-uki.sh passes OMARCHY_PROC_ROOT through, and the refresh tests point it at no device tree.
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.
What changes
systemd-stub picks a Snapdragon machine's device tree from the trees the UKI's
DeviceTreeAutonames, andinstall/hardware/qualcomm/dtb-uki.shwrote that list once, at install. A kernel update that adds or renames a tree then builds a boot image without it. When the update also moves the machine's hardware IDs to that tree, as omacom/omarchy-pkgs#2237 does for the Anduril BlueChip, the machine boots with no tree and the screen stays black.The list now comes from
omarchy-update-qualcomm-device-trees, a hidden command with the logicdtb-uki.shhad.dtb-uki.shinstallssystemd-ukify, writes the list with--install, and links the command into/etc/boot/hooks/pre.d. limine runs that folder before every boot image build, the kernel update's included, so the list follows the trees on disk. Without--installthe command only refreshes a list Omarchy wrote, so the Surface Pro 11's single pinned tree stays as it is. It always exits 0, because a failing pre-hook stops limine's build. A migration links the hook on existing Snapdragon installs, refreshes the list and rebuilds the boot image once if the list changed.Verification
snapdragon-hardware-test.shgains checks that setup links the hook, that a tree added after install reaches the list, and that a configuration without Omarchy's list is left alone with exit 0. Its new check fails on quattro. It,hardware-quirks-test.shandsurface-pro-11-hardware-test.shpass, and./test/cli's command metadata checks pass. Its one failure, the theme template mix helper, fails the same way on quattro in that container. I couldn't run the hook or the migration on a Snapdragon machine.Screenshots
No screenshot: nothing on screen changes.