Skip to content

Speed up system and user setup during installation - #19913

Merged
dhh merged 5 commits into
quattrofrom
optimize-install-setup
Nov 23, 2026
Merged

dhh merged 5 commits into
quattrofrom
optimize-install-setup

Conversation

@dhh

@dhh dhh commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Speeds up omarchy-apply-system and omarchy-provision-user based on profiling a fresh encrypted install log:

  • Skip cold qs ipc without a Wayland display (bin/omarchy-shell): fail immediately when WAYLAND_DISPLAY is empty after display recovery instead of loading Qt6/Quickshell during chroot install (~150 ms saved in config/lockscreen-pam.sh).
  • Fast-exit ARM family predicates on non-ARM CPUs (bin/omarchy-hw-aarch64-*): return early when uname -m != aarch64 instead of spawning omarchy-hw-platform ~35+ times on x86_64 (~150–200 ms saved).
  • Match PCI devices from sysfs (bin/omarchy-hw-pci): replaces ~12 lspci calls across bin/omarchy-hw-* and install/hardware/ (plus a sysfs check for nouveau in fix-nouveau-cursor.sh), avoiding PCI config-space wakeups (~80–100 ms in a VM, up to ~2.4 s on laptops with runtime-suspended devices).
  • Support pre-baking static firewall rules (install/config/firewall.sh): guards the static ufw + ufw-docker rule writes behind a versioned stamp (/var/lib/omarchy/firewall-rules-version) and adds OMARCHY_FIREWALL_RULES_ONLY=1 for root-image builds so ENABLED=no stays untouched until install (~640 ms saved when paired with the omarchy-iso pre-bake).
  • Faster user finalization (bin/omarchy-provision-user, bin/omarchy-agent-skills-link): sets the default browser in one xdg-mime default call instead of xdg-settings set default-web-browser (~190 ms saved) and batches ln -sfn -t per harness directory.

Reviewed by Claude.

@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

This PR reduces repeated work during system and user setup.

  • Hardware setup identifies most PCI devices from cached sysfs details.
  • ARM hardware checks skip platform detection on non-ARM machines.
  • Shell IPC stops early when no Wayland display is available.
  • Firewall rules can be baked before UFW is enabled.
  • User setup sets Chrome for web pages and links at once.
  • Agent skills are linked in batches for each harness.

No actionable issues were found. This review used source inspection; no runtime tests were run.

Reviews (1) · Last reviewed commit: "Speed up user finalization with xdg-mime..." · Reviewed by Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants