Repository navigation
Compose mkinitcpio HOOKS from an early per-platform baseline - #536
Merged
Merged
Conversation
omarchy_hooks.conf assigned HOOKS outright and sorted after numbered platform drop-ins, so their hooks were lost. 00-omarchy-hooks.conf now sets the platform's baseline first and later drop-ins add to it. The NVIDIA kms filter and vconsole handling stay in omarchy_hooks.conf, and x86 keeps the same HOOKS, MODULES and FILES.
maralcbr
changed the base branch from
mac/13-hw-platform
to
quattro-upstream
September 25, 2026 10:49
This was referenced Sep 25, 2026
Merged
maralcbr
added a commit
that referenced
this pull request
Sep 25, 2026
Brings in the runtime profile and composed package lists (#542), the platform mkinitcpio baseline (#536) and deferred first-boot setup (#528). The Apple package list is #542's with omarchy-mac-boot after omarchy-mac. The boot package's 90-94 drop-ins now sort after 00-omarchy-hooks.conf; a new test composes the real baseline with them on an Apple Silicon fixture: the encrypted systemd image gets asahi, omarchy-vendorfw, omarchy-mac-encrypt and sd-encrypt once, a non-Latin layout stays out, and a legacy busybox encrypt line is left as its owner set it up.
This was referenced Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket 15 of the Apple Silicon convergence plan. Stacked on #514 (
mac/13-hw-platform), which addsomarchy-hw-platform.omarchy_hooks.confbegan with an unconditionalHOOKS=(...). mkinitcpio sources drop-ins in name order, so it ran after numbered platform fragments (omarchy-mac-boot's90-to94-) and threw their hooks away. HOOKS now comes from a new00-omarchy-hooks.conf, which sorts first and picks the platform's baseline withomarchy-hw-platform:omarchy_hooks.confkeeps the NVIDIA kms filter and the vconsole handling unchanged, and still sorts afternvidia.conf. Migration 1786605598 now sources the baseline first; without it, the migration would also have rebuilt hybrid systems.Testing
test/shell.d/mkinitcpio-hooks-test.shcomposes the shipped drop-ins the way mkinitcpio does:mkinitcpio.confplus the drop-ins inLC_ALL=C.UTF-8 sort -zVuorder, sourced once. It covers:90-fragment's hooks surviving on every platform, also with the NVIDIA filter activenvidia_drm, NVIDIA with hibernation and a provisioning key, T2, SPI MacBook and Surfacenvidia-kms-hook-test.shnow starts from the baseline and covers the migration: it rebuilds an NVIDIA-only system and leaves a hybrid one alone. The hybrid case fails against the unfixed migration.mkinitcpio.conflines × 7 drop-in sets × 6 PCI layouts × 7vconsole.confvariants) gave identical HOOKS, MODULES and FILES.-k none -S autodetect, detector in/usr/bin) for the plain, NVIDIA-only-with-resume and hybrid cases have identical contents apart from/buildconfig.90-to94-fragments gives the HOOKS mx-mac builds today:base systemd plymouth autodetect microcode modconf kms keyboard sd-vconsole block asahi omarchy-vendorfw omarchy-mac-encrypt sd-encrypt filesystems fsck../test/allas a normal user in CI's Arch image (x86_64, emulated): 289 of 292 shell files pass.hermes-removeis on CI's known-failure list.config-test(aplocatePKGBUILD check against the local omarchy-pkgs checkout) andsleep-lock(a timing budget under emulation) fail the same way on the base commit.Second review: the second-model review could not run (reviewer quota exhausted until 30 Sep) and must be rerun before merge. An independent review of the diff found no x86 regression for configurations Omarchy writes. Its fixes are in: a stricter contradiction test and a stale comment.
Known gaps and follow-ups
HOOKS=line from their ownomarchy_hooks.conf(pacman keeps it as a backup file) now gets the baseline instead ofmkinitcpio.conf's line. A user drop-in that sets HOOKS and sorts between00-andomarchy_hooks.confnow takes effect instead of being overwritten.etc/mkinitcpio.conf.d/00-omarchy-hooks.conftobackup. On aarch64 the package still stripsmkinitcpio.conf.duntil ticket 14, so the Apple branch does nothing there yet.generic-aarch64and get the busybox baseline until the image target manifest (ticket 24) feeds the detector.encryptandcryptdevice=must not get this settings package before their boot chain is switched (ticket 45). On Apple the baseline has no busyboxencrypt.