Repository navigation
omarchy-settings: keep the Limine and mkinitcpio drop-ins on aarch64 - #380
Conversation
The aarch64 packages removed etc/mkinitcpio.conf.d and etc/limine-entry-tool.d wholesale. On an encrypted aarch64 install that boots with Limine (DGX Spark, Snapdragon X), installing the published package therefore drops omarchy_hooks.conf, HOOKS falls back to /etc/mkinitcpio.conf, and the next kernel update builds an initramfs with no encrypt hook: the machine hangs waiting for /dev/mapper/root with no prompt. Ship both drop-in directories on aarch64 and remove only thunderbolt_module.conf, whose module ARM kernels do not have. Keep the Limine template and the snapper notifier autostart for the same reason. The memory-stack removals (zram, oomd, zswap, USB autosuspend) are unchanged.
|
@jdvmi00 , there's a pr here against your branch that updates this pr. |
Preserve the v4.0.4 source pin and checksum while retaining the settings package revision bump. Keep Jim Martin’s boot-configuration fix and original commit intact.
Record the current quattro-derived version before bumping pkgrel, so makepkg does not discard the revision bump when updating a stale pkgver.
Exercise both settings recipes with synthetic runtime files. Check the exact Limine templates, boot drop-ins and backup metadata, installer-owned configuration, notifier copies and architecture-specific Thunderbolt handling. Run package regressions in the existing self-test job.
…260916 Refresh ARM boot settings against master and add regression tests
…tings-boot-dropins # Conflicts: # .github/workflows/test.yml
…tings-boot-dropins
|
@maralcbr I merged current master to resolve the conflict with e841c87, keeping your r847.g4de185b pin and bumping pkgrel to 3 for the recipe change. One question before this goes further. #380 ships omarchy_hooks.conf, the Limine entry-tool config and the Limine template in every aarch64 package, including sources without the runtime-profile marker, while #638 keeps today's stripped aarch64 package for those. Would these files cause problems on omarchy-mac installs running v4.0.4? If so, I'm happy to narrow #380, or close it in favour of #638 once #13362 lands. Snapdragon and DGX Spark installs need them now: without omarchy_hooks.conf the next kernel update builds an initramfs with no encrypt hook, and the machine can't unlock its root. |
|
Reproduced on a Snapdragon X Elite Surface Pro 11 (X1E80100, After the installer's first
Snapshot entries still booted, because their UKIs predate the change. From one of them, with So on Snapdragon, |
|
Thanks Jim. Yes, one file would break Macs: Why the hooks file breaks Macs. Macs pull omarchy-settings from edge/aarch64, so they'd get it. v4.0.4's copy sets HOOKS unconditionally, and mkinitcpio sources it after omarchy-mac-boot's
Why the rest is fine. GRUB Macs have no limine-entry-tool, and on Aurora Macs omarchy-mac-boot's Please don't close this for #638, even after omacom/omarchy#13362 lands. #638 is held, and it only changes packages whose source carries the Suggested narrowing:
Agreed |
Apple Silicon Macs install the aarch64 package too, and an unconditional HOOKS= line would replace their asahi hooks. Apply Omarchy's HOOKS line only when the incoming hooks lack asahi, in whichever drop-in carries it, and rebuild omarchy-settings (4.0.4-3) so existing installs get the fix.
|
@maralcbr thanks, that's what I needed. Pushed 21f3c4a:
Not tested on a Mac. @turbineBMW thanks for the Surface Pro 11 confirmation; |
…tings-boot-dropins
omacom/omarchy#13362 sets HOOKS per platform inside 00-omarchy-hooks.conf, with no column-0 HOOKS= line, so the aarch64 build failed on it; settings-dev tracks quattro automatically and would break as soon as it lands. Wrap only a single-line HOOKS=(...), refuse any other column-0 HOOKS=, then source the shipped files onto a Mac line and a stock line: the Mac line must come through unchanged and the stock one must not. Back up 00-omarchy-hooks.conf when it ships, and refuse it without the omarchy-hw-platform copy it asks. The test now uses the real v4.0.4 hooks file, #13362's two files and omarchy-mac-boot's 90-94 fragments, and covers upgrades over a hand-restored file.
…tings-boot-dropins
Publish succeeded → livePackages: omarchy-settings (x86_64, PR artifact); omarchy-settings (aarch64, PR artifact); omarchy-settings-dev (x86_64, PR artifact); omarchy-settings-dev (aarch64, PR artifact)
Some planned slots did not run because an earlier slot failed. |
…urces A source with default/settings-runtime-profile decides at runtime which platform-specific files apply, so its aarch64 package now gets the same files, backup and optdepends as x86_64: the Thunderbolt request and the memory stack stay, and its HOOKS files ship as they are. The check that a Mac's asahi line survives still runs on every aarch64 build. Older sources, including the pinned v4.0.4, keep #380's aarch64 package: Thunderbolt removed, the HOOKS line guarded for asahi, the memory stack stripped. The keyboard backlight unit first-run enables ships whenever the source has it. pkgrel 4 so the recipe change builds: edge already holds 4.0.4-3 on both architectures. The payload built from v4.0.4 is unchanged.
The aarch64 omarchy-settings packages remove etc/mkinitcpio.conf.d and
etc/limine-entry-tool.d wholesale, on the assumption that aarch64 means
Apple Silicon without Limine. The aarch64 installs that exist today, the
DGX Spark and the Snapdragon X laptops (#8672 / omarchy-iso#156), boot with
Limine and an encrypted root exactly like x86_64.
What happens on such an install: installing the published package drops
omarchy_hooks.conf, so HOOKS falls back to /etc/mkinitcpio.conf. Nothing
breaks until the next initramfs build. The first kernel update then produces
an image whose hook run order is
resumeonly, with no encrypt hook, nodm-crypt and no plymouth, and boot hangs on "A start job is running for
/dev/mapper/root" with no prompt. Reproduced on a DGX Spark on edge after
omarchy-settings-dev 4.0.0.r2015.g4930677-1 and linux-aarch64 7.2.3-2 →
7.2.4-1; verified with lsinitcpio; restoring omarchy_hooks.conf and running
limine-update fixed it.
Change: ship both drop-in directories, the Limine template and the snapper
notifier on aarch64 too, and remove only thunderbolt_module.conf, whose
module ARM kernels lack. Memory-stack removals are unchanged. Applied to
omarchy-settings and omarchy-settings-dev alike; omarchy-settings pkgrel
bumped.
Testing: built omarchy-settings-dev for aarch64 with bin/build in the repo
container on the Spark; the package lists etc/mkinitcpio.conf.d/omarchy_hooks.conf
and etc/limine-entry-tool.d/*.conf, and none of the zram/oomd/zswap files.
An Apple Silicon install without Limine would now get omarchy_hooks.conf,
which names btrfs-overlayfs and plymouth; that path (#9835) is unmerged and
can gate the hooks it does not want when it lands.