Skip to content

Use a mkinitcpio drop-in for EDID firmware paths - #7

Merged
ssupt merged 1 commit into
mainfrom
fix/mkinitcpio-dropin
Oct 10, 2026
Merged

ssupt merged 1 commit into
mainfrom
fix/mkinitcpio-dropin

Conversation

@ssupt

@ssupt ssupt commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

Install/Update currently rewrites /etc/mkinitcpio.conf to add EDID firmware paths. Store them in /etc/mkinitcpio.conf.d/20-drmcru.conf using FILES+=(...), preserving the user's existing files and overrides for other monitors.

  • Migrate this monitor's legacy entry from the main config, with a backup before changes.
  • Keep one EDID entry per connector across repeated updates and multiple append arrays. Uninstall removes only that connector and deletes the managed drop-in when it is empty.
  • Restore existing files, or remove newly created files and directories, if installation or the rebuild fails.
  • Detect drop-in and legacy references in installation status, and update previews, recovery documentation, and manual Export instructions.
  • Reject explicit preset config assignments before mutation when using mkinitcpio -P, because they disable drop-ins. Limine's normal rebuild backend uses the default config; custom UKI options must also avoid -c/--config.

Suggested by Rosen Penev (neheb).

Fixes #6.

Append firmware paths in /etc/mkinitcpio.conf.d/20-drmcru.conf, migrate legacy FILES entries, preserve other monitors, and restore the drop-in on failed rebuilds. Update override detection, previews, and Export instructions; reject presets that disable drop-ins before changing system files.

Suggested by Rosen Penev (neheb) in issue #6. Add regression coverage for migration, multi-monitor updates, uninstall, and rollback.
@ssupt
ssupt merged commit 46be6d8 into main Oct 10, 2026
6 checks passed
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.

[feature] Use /etc/mkinitcpio.conf.d/

1 participant