Repository navigation
Conversation
Hardware setup runs dozens of vendor-specific leaves on every machine even when DMI identifies a completely different manufacturer. Each leaf still logs, forks, and probes sysfs or helper scripts before returning. Add omarchy_leaf_vendor alongside omarchy_leaf_platform in install/helpers/logging.sh so omarchy_skip_leaf skips strictly OEM-specific leaves (Acer, Apple, ASUS, Dell, Framework 16, HP, Lenovo, Microsoft Surface, Razer, Samsung) when sys_vendor and board_vendor are readable and do not match. Missing or empty DMI fails open and skips nothing, and install/hardware/all.sh stays pure run_logged lines so image builds still enumerate every leaf.
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no actionable defects were established. SummaryAdds vendor checks before hardware setup scripts run, while preserving platform checks and full image-build enumeration.
Reviews (2) · Last reviewed commit: "Include device-tree compatible strings i..." · Reviewed by Greptile |
|
Recommend: Hold — the author should keep device-tree-matched setup eligible when DMI vendor data is inconclusive. At GitHub CI passed. Worker verification is pending. Source reviewed by Codex High, Opus 5.5 High and muse-wonder via pi, thinking high. |
Qualcomm laptops such as Surface Laptop 7 match their hardware leaves through /proc/device-tree/compatible rather than DMI. If a machine reports nonempty placeholder DMI strings like "Default string", omarchy_skip_leaf could skip those leaves before the device-tree check ran. Read /proc/device-tree/compatible (or the sysfs devicetree fallback, honoring unprivileged OMARCHY_PROC_ROOT and OMARCHY_SYS_ROOT test fixtures) once into _omarchy_hw_vendor alongside sys_vendor and board_vendor using Bash mapfile with zero extra forks. Add keep cases for placeholder DMI with device-tree matching plus positive coverage for every vendor rule in omarchy_leaf_vendor.
What changes
During install and hardware setup,
run_loggedalready skips leaves belonging to other architectures viaomarchy_leaf_platform. On x86 and Qualcomm installs, every machine still runs dozens of unrelated OEM leaves (Acer, Apple, ASUS, Dell, Framework 16, HP, Lenovo, Microsoft Surface, Razer, Samsung), paying logging and probe overhead on hardware that cannot match.Add
omarchy_leaf_vendornext toomarchy_leaf_platformininstall/helpers/logging.shand check it inomarchy_skip_leaf. Readsys_vendor,board_vendor, and top-level device-treecompatiblestrings (/proc/device-tree/compatibleor/sys/firmware/devicetree/base/compatible) once per process and skip strictly OEM-specific leaves when the combined identity is non-empty and does not match.install/hardware/all.shstays purerun_loggedlines so image builds still enumerate every leaf.user/hardware/framework/fix-f13-amd-audio-input.sh, which probes any AMD Family 17h/19h PipeWire card) are not gated.How it was tested
test/shell.d/pkg-drop-test.shcovering positive keep cases for all ten vendor rules, placeholder-DMI + device-tree keep cases (/proc/device-tree/compatibleand/sys/firmware/devicetree/base/compatible), board-vendor fallback, non-DMI AMD audio retention, and cross-vendor skips on x86 and Qualcomm.pkg-drop-test.sh,hw-platform-test.sh,hw-match-device-tree-test.sh,image-target-platform-test.sh,apply-lock-test.sh,dgx-spark-boot-test.sh, andplatform-setup-test.shunder Bash 5.3 plusshellcheck -s bash -S warning.Not checked: bare-metal hardware runs across every listed OEM.