reims-restore installs macOS 14 to 27 from a UniversalMac IPSW onto an arm64 VM's disk the way a Virtualization.framework restore does, but writes the disk itself. It reads the IPSW where it is, asks Apple's TSS for the VM's tickets, and lays out the GPT, the three APFS containers, NVRAM and the auxiliary storage as a fresh VZ restore leaves them. No VM runs and no Apple code runs: no AVPBooter, iBoot, restore OS or ASR. That is the owner's rule for the install (11-11), and it is what lets the same restore run on arm64 Linux and on a Mac. A guest boots the result under QEMU's vmapple on Ambrosia. It is its own Cargo workspace (like reims-ctl), with reims-apfs, its APFS reader and writer, as a member: - the IPSW's members, BuildManifest identities, UDIF, AEA (with Apple's key service) and the deflated images 14's IPSWs keep (ipsw, manifest, udif, aea, image); - TSS requests and their checked answers, and Image4's DER (tss, img4); - the install plan, which equals VZ's disks record for record (plan, xml_plist, mtree), and the three containers it writes, with the system volume sealed by our own seal and root hash (containers, reims-apfs); - NVRAM, both banks, and the ean storage with the SFR manifest (aux); - the LocalPolicies, signed by the project's chain, with the guest's trust anchors swapped for that chain by Ambrosia Kernel>Patch entries found in the IPSW's own kernel collection (policy, anchors, kernelcache); - macOS 14's Data volume, which its first boot makes by EACS, and finish-eacs after it (pipeline); - the current IPSW from Apple's catalog, downloaded and continued in place, never truncating a file (catalog, download, http). docs/design.md says what each step writes and how each fact was found (VZ's guests, the IPSWs, or measured). Nothing from an IPSW or a guest is committed; the tests use inputs written from scratch. docs/lessons.md records why a live download check must never hard-link the owner's files: an earlier downloader truncated a hard-linked IPSW in place. This is the lane's WIP history squashed. Its restore-OS route (route (a), closed by Apple's per-VM activation attestation) is left out.
23 lines
575 B
Plaintext
23 lines
575 B
Plaintext
# Build output: QEMU's builds, the coverage build and the VM clones.
|
|
/build/
|
|
|
|
# The option ROM's build, when make runs in firmware/ (cargo xtask dist builds
|
|
# it under the target directory), and the Ambrosia module's.
|
|
/firmware/build/
|
|
/firmware/ambrosia/build/
|
|
|
|
# The guest display kext's build.
|
|
/guest/kext/build/
|
|
|
|
# Python's bytecode caches.
|
|
__pycache__/
|
|
|
|
# Editor / OS
|
|
.DS_Store
|
|
|
|
# The Cargo workspace's build trees (target, and any target-* beside it), and
|
|
# reims-ctl's, which is a workspace of its own.
|
|
/target*/
|
|
/crates/reims-ctl/target/
|
|
/crates/reims-restore/target/
|