Skip to content

Protect the kyber I/O scheduler udev rule on upgrade - #425

Merged
dhh merged 1 commit into
masterfrom
io-scheduler-udev-rule
Sep 13, 2026
Merged

dhh merged 1 commit into
masterfrom
io-scheduler-udev-rule

Conversation

@dhh

@dhh dhh commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Problem

omacom/omarchy#11653 added etc/udev/rules.d/60-omarchy-io-scheduler.rules, which sets kyber on whole disks. package() in the omarchy-settings PKGBUILDs already ships the whole etc/ tree, so the rule reaches new installs with the next build. But it is not in backup=, so an upgrade would overwrite a user's local edit of the rule (for example narrowing it to SSDs) without the usual .pacsave handling.

Change

List the rule in backup= in both omarchy-settings and omarchy-settings-dev, next to the other package-owned udev rules. The two arrays are kept identical, as before.

Verification

  • Built omarchy-settings-dev from a local quattro checkout at the merge of #11653 (OMARCHY_SRC=~/omarchy makepkg): the package contains etc/udev/rules.d/60-omarchy-io-scheduler.rules with the rule body intact, and .PKGINFO lists it under backup.
  • The four self-test targets from .github/workflows/test.yml pass locally.
  • Reviewed with Codex (codex review --base master): no actionable defects; it confirmed both PKGBUILDs stay consistent and ran bash -n and git diff --check clean.

Not changed here: backup= still lists 99-omarchy-power-profile.rules and 99-omarchy-wifi-powersave.rules, which no longer exist in the quattro etc/udev/rules.d/ tree (wifi powersave moved to etc/NetworkManager/conf.d/). Harmless stale entries, left for a separate cleanup.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EqYNBv5cERVom2zox5epyE

omacom/omarchy#11653 added etc/udev/rules.d/60-omarchy-io-scheduler.rules. package() already ships the whole etc/ tree, so the rule lands on new installs with the next build; list it in backup= so pacman keeps a user's local edit of the rule across upgrades, like the other package-owned /etc drop-ins.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EqYNBv5cERVom2zox5epyE
@dhh
dhh marked this pull request as ready for review September 13, 2026 15:06
@dhh
dhh merged commit 28da766 into master Sep 13, 2026
2 checks passed
@dhh
dhh deleted the io-scheduler-udev-rule branch September 13, 2026 15:59
phil-bowens added a commit to phil-bowens/omarchy-pkgs that referenced this pull request Sep 27, 2026
omacom/omarchy#13373 adds etc/udev/rules.d/65-omarchy-webcam-framerate.rules,
which turns off auto-exposure priority on UVC capture nodes so webcams
hold their requested frame rate. package() already ships the whole etc/
tree, so the rule lands with the next build; list it in backup= so a
user's local edit survives upgrades, as omacom#425 did for the kyber rule.

The rule runs v4l2-ctl, so declare v4l-utils as a dependency of the
package that ships it rather than rely on it arriving through mpv and
obs-studio's ffmpeg. On the default package set it is already installed;
this makes the rule self-contained on a trimmed one.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.

1 participant