Skip to content

omarchy-settings: keep the Limine and mkinitcpio drop-ins on aarch64 - #380

Merged
maralcbr merged 12 commits into
omacom:masterfrom
jdvmi00:spark/aarch64-settings-boot-dropins
Sep 28, 2026
Merged

maralcbr merged 12 commits into
omacom:masterfrom
jdvmi00:spark/aarch64-settings-boot-dropins

Conversation

@jdvmi00

@jdvmi00 jdvmi00 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

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 resume only, with no encrypt hook, no
dm-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.

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.
@birkskyum

birkskyum commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

@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
@jdvmi00

jdvmi00 commented Sep 26, 2026

Copy link
Copy Markdown
Contributor Author

@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. tests/settings-boot-config.sh and the self-tests pass locally.

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.

@turbineBMW

Copy link
Copy Markdown
Contributor

Reproduced on a Snapdragon X Elite Surface Pro 11 (X1E80100, microsoft,denali-oled, encrypted root), installed from a locally built dragon ISO, and confirmed that the three files this PR keeps are what fixes it.

After the installer's first pacman -Syu pulled omarchy-settings-dev 4.0.0.r2304.g7b336b1-1 from edge, omarchy_hooks.conf, omarchy-defaults.conf and omarchy-uki.conf were gone. The next kernel install (a device kernel package; a linux-aarch64 update takes the same path) broke both halves of the boot:

  • Initramfs: HOOKS fell back to base systemd … block filesystems fsck, and boot hung on "A start job is running for /dev/mapper/omarchy_root (no limit)" behind a black screen, as in the PR description.
  • Limine entry: without ENABLE_UKI=yes, limine-entry-tool wrote a protocol: linux entry (vmlinuz + initramfs) instead of the UKI. On Snapdragon that alone is fatal, because the UKI is what carries the device tree (.dtbauto/.dtb from /etc/kernel/uki.conf). The entry also lost quiet splash initramfs_async=0 from omarchy-defaults.conf.

Snapshot entries still booted, because their UKIs predate the change. From one of them, with rootflags=subvol=@, I restored the three files and ran limine-mkinitcpio. Result: a UKI entry again, lsinitcpio hook order udev plymouth keymap consolefont encrypt resume (identical to the install-time image), and the embedded .dtb byte-identical to the device's DTB. It boots normally with the Plymouth unlock prompt and passed a suspend/resume cycle.

So on Snapdragon, omarchy-uki.conf is needed alongside omarchy_hooks.conf. Whichever of #380 or #638 lands needs to ship both on aarch64 Limine installs.

@maralcbr

maralcbr commented Sep 27, 2026 •

Copy link
Copy Markdown
Member

Thanks Jim. Yes, one file would break Macs: omarchy_hooks.conf. The Limine drop-ins, the template and the notifier are fine.

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 90-–94- fragments.

  • On an Aurora Mac this swaps asahi omarchy-vendorfw omarchy-mac-encrypt sd-encrypt for the busybox line. I checked this against a real M1 Pro's drop-ins.
  • Legacy quattro GRUB Macs would lose asahi. omarchy-mac's setup notes that an image without it wedges in the initramfs. I haven't boot-tested that path.

Why the rest is fine. GRUB Macs have no limine-entry-tool, and on Aurora Macs omarchy-mac-boot's /etc/default/limine outranks the drop-ins. On a GRUB Mac the notifier autostart just fails quietly.

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 default/settings-runtime-profile marker. Neither v4.0.4 nor #13362 has that marker, so #638 would keep aarch64 stripped and wouldn't fix Snapdragon or the Spark. This PR does.

Suggested narrowing:

  • Guard the HOOKS line. On aarch64, have package() wrap the HOOKS= assignment in omarchy_hooks.conf so it only applies when the incoming HOOKS lack asahi:
    if [[ " ${HOOKS[*]:-} " != *" asahi "* ]]; then
      HOOKS=(...)
    fi
    This is evaluated when mkinitcpio sources the file. A device-tree check can read the host rather than the target inside a chroot. The config-based guard also works without a device tree on the ACPI Spark. With that guard, the M1 Pro's effective HOOKS stay unchanged, and a Snapdragon-style systemd line still gets the Omarchy busybox line.
  • Guard wherever HOOKS is set. #13362 moves the unconditional HOOKS= line from omarchy_hooks.conf into a new 00-omarchy-hooks.conf. That file sorts before the Mac fragments, but on a legacy Mac it still overwrites the asahi in mkinitcpio.conf. So apply the same guard to whichever of the two files carries the line. Fail the build only if neither does, since -dev tracks a moving tip.
  • Tests.
    • Source mkinitcpio.conf plus the drop-ins in C sort order. An Asahi line or the 9x- fragments should stay unchanged; Snapdragon's systemd line and the Spark should get the Omarchy line.
    • Run real pacman upgrades where the file is absent, unchanged or modified, then source the installed files. A modified file leaves the guarded version as .pacnew.
  • Bump omarchy-settings to pkgrel 3. It's still 4.0.4-2, the version already published, so CI won't rebuild it and existing installs won't get the fix.

Agreed omarchy-uki.conf must stay, per @turbineBMW's Snapdragon results. Once this lands I'll rebase #638 onto it, so its legacy branch keeps this fix.

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.
@jdvmi00

jdvmi00 commented Sep 27, 2026

Copy link
Copy Markdown
Contributor Author

@maralcbr thanks, that's what I needed. Pushed 21f3c4a:

  • On aarch64, package() wraps the HOOKS= line in whichever of 00-omarchy-hooks.conf or omarchy_hooks.conf carries it with if [[ " ${HOOKS[*]:-} " != *" asahi "* ]], and fails the build if neither does.
  • omarchy-settings is now 4.0.4-3.
  • tests/settings-boot-config.sh sources mkinitcpio.conf and the drop-ins in C order for both layouts (today's file and #13362's 00-omarchy-hooks.conf). An Asahi line and a 92- Mac fragment stay unchanged, and the Snapdragon systemd line and the Spark's default get the Omarchy line. It also runs real pacman upgrades with the file absent, unchanged and modified, then sources the installed files; the modified case keeps the local file and leaves the guarded one as .pacnew. The upgrades need root, so they run in CI; I also ran them as root in an Arch Linux ARM container. Removing the guard from the recipe fails the legacy-Mac case.

Not tested on a Mac. @turbineBMW thanks for the Surface Pro 11 confirmation; omarchy-uki.conf and omarchy-defaults.conf stay.

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.
@ryanrhughes ryanrhughes added the build-approved Maintainer approved this PR to build on the self-hosted pool label Sep 28, 2026
@maralcbr
maralcbr merged commit 6eb4ad1 into omacom:master Sep 28, 2026
13 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Publish succeeded → live

Packages: omarchy-settings (x86_64, PR artifact); omarchy-settings (aarch64, PR artifact); omarchy-settings-dev (x86_64, PR artifact); omarchy-settings-dev (aarch64, PR artifact)

  • edge/x86_64: omarchy-settings-4.0.4-3-x86_64, omarchy-settings-dev-4.0.0.r6663.g3faafba-2-x86_64
  • edge/aarch64: omarchy-settings-4.0.4-3-aarch64, omarchy-settings-dev-4.0.0.r6663.g3faafba-2-aarch64

Some planned slots did not run because an earlier slot failed.

Commit 6eb4ad1 · run

maralcbr added a commit that referenced this pull request Sep 28, 2026
…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.
@jdvmi00
jdvmi00 deleted the spark/aarch64-settings-boot-dropins branch October 14, 2026 00:59
@jdvmi00 jdvmi00 mentioned this pull request Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-approved Maintainer approved this PR to build on the self-hosted pool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants