Skip to content

Let updates take over the drop-ins omarchy-settings ships on aarch64 - #651

Merged
maralcbr merged 2 commits into
quattro-upstreamfrom
mac/103-takeover-platform-paths
Sep 28, 2026
Merged

maralcbr merged 2 commits into
quattro-upstreamfrom
mac/103-takeover-platform-paths

Conversation

@maralcbr

@maralcbr maralcbr commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

omarchy-settings ships its memory, USB and mkinitcpio drop-ins on aarch64 now (omarchy-pkgs #638), but omarchy-mac-boot's update-takeover (#636) and quattro-upstream's inline copy in omarchy-update-system-pkgs-when-conflicted still refused them. A Mac with an unowned copy (after omarchy-upgrade-to-quattro --overwrite, say) had every takeover refused, so every update failed.

Both lists now keep only the boot chain (/boot, GRUB, Limine), /usr/lib/initcpio and the pacman configuration. One narrow guard stays for mkinitcpio: a file whose own top-level HOOKS=/HOOKS+= line carries the asahi or busybox encrypt hook is refused, with the fix in the message. The HOOKS baseline (00-omarchy-hooks.conf) sorts before omarchy_hooks.conf, so replacing a legacy Mac's unowned copy would switch its initramfs to the systemd line while GRUB still unlocks with cryptdevice=.

Testing (Arch container, non-root): mac-update-takeover-test.sh (kept paths refuse; every aarch64 settings drop-in passes absent or present; the legacy HOOKS layouts refuse, commented or sd-encrypt lines don't), the boot package suite, and test/shell.d/update-file-conflict-test.sh (the settings drop-ins no longer refuse on Apple Silicon). shellcheck clean. Second review: no blockers; its one finding (indented HOOKS lines in the baseline's own branches counted, so an unowned copy of the baseline was refused) is fixed by reading top-level lines only, with a test. Scott's round-2 review of omacom#13362 raised the list; design debated before coding.

omarchy-settings now ships its memory, USB and mkinitcpio drop-ins on aarch64 too, so a Mac with an unowned copy had every takeover refused and every update failed. The Mac keeps only its boot chain, /usr/lib/initcpio and pacman configuration, plus an mkinitcpio file whose own HOOKS carry the asahi or busybox encrypt hook: the HOOKS baseline sorts before it, so replacing it would move a legacy Mac to the systemd line while GRUB still unlocks with cryptdevice=.
The HOOKS baseline carries a busybox encrypt line in an indented branch, so an unowned copy of it was refused as if it set the Mac's unlock.
@maralcbr
maralcbr merged commit aac74d9 into quattro-upstream Sep 28, 2026
5 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.

1 participant