Skip to content

Refresh the Snapdragon device tree list before every boot image build - #17934

Merged
dhh merged 3 commits into
omacom:quattrofrom
birkskyum:qualcomm-device-tree-refresh
Nov 6, 2026
Merged

dhh merged 3 commits into
omacom:quattrofrom
birkskyum:qualcomm-device-tree-refresh

Conversation

@birkskyum

Copy link
Copy Markdown
Contributor

What changes

systemd-stub picks a Snapdragon machine's device tree from the trees the UKI's DeviceTreeAuto names, and install/hardware/qualcomm/dtb-uki.sh wrote 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 logic dtb-uki.sh had. dtb-uki.sh installs systemd-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 --install the 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.sh gains 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.sh and surface-pro-11-hardware-test.sh pass, 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.

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.
@greptile-apps

greptile-apps Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new actionable issues remain.

Summary

Refreshes Snapdragon device-tree paths before each boot image build.

  • Snapdragon boot images refresh their device-tree list before every build.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Hardware setup] --> B[Write managed device-tree list]
  A --> C[Link packaged pre-build hook]
  D[Kernel update or boot image rebuild] --> C
  C --> E[Refresh managed list]
  E --> F[Build boot image]
Loading

Reviews (3) · Last reviewed commit: "Record the owed boot image rebuild befor..." · Reviewed by Greptile

Comment thread migrations/1793989240.sh Resolved
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.
@birkskyum

Copy link
Copy Markdown
Contributor Author

@greptileai

@dhh
dhh merged commit 1da8539 into omacom:quattro Nov 6, 2026
3 checks passed
@dhh
dhh requested a review from kwilczynski November 6, 2026 19:16
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.
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