OpenBoot
Draft: this page is not reviewed yet.

Installer owner sessionsDraft

Some gates need a person at the machine: recovery's console, a power-button hold, a password typed by the owner. They are batched into three sessions so that each trip to the machine proves as much as possible. The gates themselves are on the gates page. Nothing here has been run yet.

Rules for every session. The recovery environment has md5 -q and no other checksum tool that can be relied on: compare checksums with md5 -q against the table the pre-flight printed. The owner types every admin password himself; the installer never reads one from a file. Between steps, stop when a line differs from the expected one and run the rollback of that step, not the next step.

S1: the release object on the legacy group#

About 75 minutes at the machine.

Preconditions: the release-profile, slot-format and step 2 tasks are merged; G4a passed; the kit is on the carrier and g4b-preflight.sh passed.

Step What Done when
1 Confirm a verified backup exists (Time Machine or equivalent). The owner says so.
2 Inventory the recovery tools: run inventory-1tr.sh from the kit and keep the output (is openssl there?). Output saved on the carrier.
3 DFU rehearsal (see below). Port, cable and the host's view of the machine in DFU are written down; the firmware image is cached on the host; exited without reviving or restoring.
4 G4b prep: which driver package is installed; EL2 info page; swap and one reboot; WinPE rollback ready. The checks on the gates page pass.
5 G4b: start recovery from the legacy group, run the kit's install.sh, reboot. POST-CHECK OK, then the expected lines and obinstall verify pass.

DFU rehearsal: name the machine's DFU port and the cable; on the host check that the configurator tool lists the machine in DFU; have the matching firmware image downloaded; know that revive keeps data and is the first resort, restore erases; leave DFU without doing either.

Rollback: the carrier's rollback script in the same recovery visit.

S2: the stub and its removal#

About 90 minutes. The evening part of G4c1 ran the evening before and passed.

Preconditions: the G4c1 entry list; the stub prepared by the evening part; the rollback of the evening part known (obinstall remove --stub-only).

  1. At macOS: run the hand-off. The owner types the admin password for bless; the tool checks the boot volume and shuts the machine down only after Enter.
  2. Hold the power button, choose the stub. Write down whether Finish Installation opens by itself; if not, run step 2 from Terminal by hand.
  3. In the stub's recovery: the policy must be paired and the one true recovery; step 2 asks for the admin credentials (bputil -n unless already permissive); kmutil runs. If kmutil refuses naming kernel extensions, step 2 offers a second branch that needs the typed word retry-with-kexts; record which branch ran (step2-result.txt on the stub volume).
  4. Reboot, capture the console, run gatelines.py --gate g4c1.
  5. Bless the legacy group back (the owner types the password) and boot it: window opens, accept value still valid.
  6. G4d at macOS: g4d.sh with approval.

Rollback: if step 3 fails, step 2 offers the rollback object; if the stub does not boot, hold the power button and choose the legacy group, then obinstall remove --stub-only.

S3: resize and Windows Setup (G4c2)#

Two to three hours, in its own session on the Mac that is the target of this gate.

Preconditions: G4c1 and G4d passed; the tripwire evidence clean; the resize image test passed; a verified backup; the DFU rehearsal done with the image cached on the host.

  1. Check the backup is current. Print limits and choose the new container size in bytes.
  2. Resize the macOS container, then a fresh install with a Windows area; the prediction gate must pass first.
  3. Step 2 in recovery as in S2.
  4. Boot stock Windows Setup from the stick made with the Setup kit; choose the pre-created Basic Data partition; follow the tested Secure Boot sequence.
  5. Windows boots from its own ESP; the Apple partition set is unchanged except the resized container's last block; the legacy group is accepted again.
  6. Remove the install or keep it, as the owner decides.