Windows Setup on an OpenBoot diskDraft
The installer is designed to create the Windows partitions itself, so stock Windows Setup only has to pick the Basic Data partition and format it. This page describes the design and the host test that guards it. It is not an installation guide: no released installer exists yet.
The Setup kit#
tools/obinstall/src/setupkit.py writes the files that go on the stick next
to Windows Setup:
OpenBoot/drivers/obans/: the public driver package, checked against theobans_pkgdigest in the release manifest before and after the copy.OpenBoot/cks/policy.cip: the signed code-integrity policy, only for the Secure Boot path. A kit for the Secure Boot-off path has no policy.OpenBoot/README.txt: the steps and the package digest to compare with the one the installer printed.
The kit holds no partitioning or boot-configuration script.
The tripwire#
The release object keeps the GPT policy at refuse: the guard rejects any
write to the partition table. That is only usable if Setup, given a disk with
all four partitions in place (ESP, MSR, Windows, WinRE), never needs to write
the table. tools/vmtest/setup-tripwire/run.sh checks this on the host:
mkdisk.pybuilds a synthetic disk with 4096-byte blocks and a GPT of the same shape (an Apple-style container pair, the four Windows partitions, a Recovery container). All numbers are synthetic.- QEMU (AArch64, edk2, swtpm TPM 2.0, Secure Boot on or off) boots a Windows
11 ARM64 Setup ISO that you supply. The disk goes through the
blklogwritesdriver, which logs every write, write-zeroes and discard. gptwatch.pyreports every logged write that overlaps blocks 0 to 5 or the last six blocks, marks rewrites with identical bytes, and diffs the partition entries before and after.
The run exits 0 when nothing touched those areas, 1 otherwise. If a hit
appears, the refuse premise is wrong and the design must change before any
release. Emulation is slow: a full Setup takes hours, and a person or a script
drives it over the VNC socket.
What the run does not decide#
- The attribute bits that stage 1 leaves on the WinRE partition are not
recorded in this tree;
mkdisk.py --winre-attrstakes the value from a capture. Until then the default is 0. - Whether Setup formats WinRE itself, BitLocker device encryption and the TPM and Secure Boot checks are read from the finished VM by hand.
- A green run is host evidence only. It is not a result on the Mac.