Skip to content

Converge Apple installation with shared Omarchy and package boot support - #503

Merged
maralcbr merged 20 commits into
quattro-upstreamfrom
integrate/quattro-encryption-limine
Sep 25, 2026
Merged

maralcbr merged 20 commits into
quattro-upstreamfrom
integrate/quattro-encryption-limine

Conversation

@scottjones

@scottjones scottjones commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Bring the upstream Omarchy experience to Apple Silicon while keeping hardware and boot implementation in separately built packages. Target: quattro-upstream. This PR is for review; do not merge before coordinated candidate and physical qualification.

The integration retains the encrypted Limine installation work and its safeguards, removes Mac-specific account-password synchronization, and makes shared Limine refresh respect the configured ESP. Generic recovery-slot/journal operations remain core code for upstream contribution, with isolated non-Mac tests; this pass does not enable a new recovery policy on existing non-Mac installations.

Apple boot commands and boot-file operations now live under packages/omarchy-mac/boot, delivered by omarchy-mac-boot. The kernel-neutral hardware package stays separate. Shared owner/reset UI, transaction ordering and Limine menu/hash helpers remain in core. Missing required Apple modules fail closed. Existing GRUB compatibility is preserved while fresh Limine installs are the qualification target.

Review commits:

  • a5fc2b8ee: shared disk-password policy.
  • 6ed5edf65: generic recovery operations and non-Mac coverage.
  • f37635508: configured ESP support.
  • 37da9a8cf: package-owned boot implementation.
  • 0d4070aea: migration assessment against actual quattro at 90438bceab9601b0181e65bc47180d1fb1d34496.

The migration assessment preserves an eventual in-place path, including existing ARM signing/update transaction behavior, configuration and migration history, file ownership and historical snapshots. No migration or channel enablement is shipped here.

Validation: focused provisioning/rekey/reset/recovery/provider/password/ESP suites and independent hardware/boot package fixtures pass. The first corrected-environment aggregate passed 300/302 files; the remaining Snapper-layout and lock-fixture assumptions were fixed and their focused tests pass. The new native candidate has not been built: the disposable toolchain needs additional test dependencies, and the host has only 8.2 GB free for image/VM work. Package transaction and VM qualification remain pending. No new physical qualification is claimed. The successful build-25 installation used the preserved baseline e82fe3c8850b184dfa22eefd571646ad85446122.

Coordinated reviews: installer and image builder #2, package recipes #65, VM harness #504.

Before merge: verify the complete candidate transaction and VM boots, then repeat M3 installation, encrypted reboot, recovery-key unlock and factory reset through a second owner setup. The small pilot remains explicitly frozen. No production publication or trust change is included.

Adapt Marcelo runtime source d418ab7 (PRs 192, 199, 211, 217-220). Preserve candidate/channel separation and restore existing menu, defaults and UKIs on failed reactivation. Fresh-image integration remains separately gated.
Adapt Marcelo runtime source d418ab7, originating in PR 185. Authenticate owner-slot reuse, sync committed state, preserve firmware and refuse cross-kernel factory resets. Retain existing raw LUKS parent discovery.
Selectively adapt Marcelo PRs #208/#209 at 979ed03; retain the pinned #219 no-GRUB path. Preserve existing visuals and refresh an active Limine UKI through its coordinated updater.
Restore the exact prior EFI loader, GRUB targets, UKI, menu and hooks on failure. Install the mandatory deploy hook before committing activation, scope cleanup traps, and check required writes even when callers suppress errexit.
maralcbr added a commit that referenced this pull request Sep 25, 2026
docs: gap audit of #503 and quattro-upstream against mx-mac
maralcbr added a commit that referenced this pull request Sep 25, 2026
Brings in the password sync (#532), audio (#535), display (#533), Wi-Fi
resume (#529) and battery charge limit (#525) work.

omarchy-drive-password takes #532's version. It already carries what #503
added (no tracing, the new password over stdin), and it has no Apple branch.
#503's drive-password-apple-test.sh asserted that the disk password never
changes the login or root password, which ticket 19 replaced with a
journaled LUKS-first sync for the system disk; drive-password-test.sh covers
the shared behaviour, so the Apple copy goes.
maralcbr added a commit that referenced this pull request Sep 25, 2026
Land #503 with the review fixes and the gap-audit merge blockers
@maralcbr
maralcbr merged commit 0d4070a into quattro-upstream Sep 25, 2026
maralcbr added a commit that referenced this pull request Sep 27, 2026
… key slots

Owner provisioning asks provision-prepare before the owner form, hands the
staged unlock to provision-commit and provision-verify where the platform
implements both, rebuilds stale boot entries through boot-rebuild where it
exists, and records the kept LUKS slots through luks-slots before the staged
key is destroyed. A platform that records the slots also gets a recovery
key, shown once on the setup terminal and kept by the re-key journal; the
disk password change records the owner's new slot the same way. On x86,
Snapdragon and generic aarch64 every call is a no-op and first boot is
unchanged.

The recovery-key operations and their tests come from Scott Jones's
extraction in #503.

Co-authored-by: Scott Jones <[email protected]>
maralcbr added a commit that referenced this pull request Sep 28, 2026
… key slots

Owner provisioning asks provision-prepare before the owner form, hands the
staged unlock to provision-commit and provision-verify where the platform
implements both, and records the kept LUKS slots through luks-slots before
the staged key is destroyed. A platform that records the slots also gets a
recovery key, shown once on the setup terminal and kept by the re-key
journal; the disk password change records the owner's new slot the same
way. On x86, Snapdragon and generic aarch64 every call is a no-op and first
boot is unchanged.

The recovery-key operations and their tests come from Scott Jones's
extraction in #503.

Co-authored-by: Scott Jones <[email protected]>
maralcbr added a commit that referenced this pull request Sep 28, 2026
… key slots

Owner provisioning asks provision-prepare before the owner form, hands the
staged unlock to provision-commit and provision-verify where the platform
implements both, and records the kept LUKS slots through luks-slots before
the staged key is destroyed. A platform that records the slots also gets a
recovery key, shown once on the setup terminal and kept by the re-key
journal; the disk password change records the owner's new slot the same
way. On x86, Snapdragon and generic aarch64 every call is a no-op and first
boot is unchanged.

The recovery-key operations and their tests come from Scott Jones's
extraction in #503.

Co-authored-by: Scott Jones <[email protected]>
DanteCpp pushed a commit to DanteCpp/omarchy that referenced this pull request Oct 16, 2026
Brings in omacom#503 (integrate/quattro-encryption-limine) with the
owner's review fixes (fix/pr503-review-findings) on top of omacom#517.

omacom#503 adopts omacom#517's journal: luks-recovery.sh drops its copies of luks_slot_for,
luks_dump_slots, rekey_state_get and rekey_state_put and keeps only the
recovery-passphrase and slot-reuse parts. Its rekey_state_put ran
install -d -m 700 on the provisioning directory, which would stop the new
user's setup reading the stashed Node tarball; omacom#517's write leaves the mode
alone, and the Apple provisioning test now checks it.

The non-Apple re-key is omacom#517's luks_rekey behind the Limine unlock callbacks,
replacing omacom#503's rekey_luks_intel. Apple Silicon keeps omacom#503's encrypt.state
re-key with the recovery slot until it moves behind the same callbacks.
AaryanSinghChauhan09 pushed a commit to AaryanSinghChauhan09/SigmaOS-mac-pkgs that referenced this pull request Nov 23, 2026
Brings in omacom/omarchy-mac#503 (integrate/quattro-encryption-limine) with the
owner's review fixes (fix/pr503-review-findings) on top of #517.

#503 adopts #517's journal: luks-recovery.sh drops its copies of luks_slot_for,
luks_dump_slots, rekey_state_get and rekey_state_put and keeps only the
recovery-passphrase and slot-reuse parts. Its rekey_state_put ran
install -d -m 700 on the provisioning directory, which would stop the new
user's setup reading the stashed Node tarball; #517's write leaves the mode
alone, and the Apple provisioning test now checks it.

The non-Apple re-key is #517's luks_rekey behind the Limine unlock callbacks,
replacing #503's rekey_luks_intel. Apple Silicon keeps #503's encrypt.state
re-key with the recovery slot until it moves behind the same callbacks.
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.

2 participants