OpenBoot
Draft: this page is not reviewed yet.

Secure Boot after a fresh installDraft

This page describes the order the installer's design uses to get a fresh Windows install from "Setup done" to "Secure Boot on, test signing off, the project's drivers loaded". It has not been run end to end yet: the QEMU Setup run and the hardware run that would prove it are still to do, so treat it as the plan, not as a recipe.

Why Setup runs with Secure Boot off#

Windows Setup is the stock one. The design default is to run it with Secure Boot off, then switch Secure Boot on once the drivers' trust is in place. The alternative (the trust policy on the Setup stick, Secure Boot on from the start) is only taken if a test shows it works.

The sequence#

  1. Install Windows with stock Setup while Secure Boot is off.
  2. First boot: turn test signing on, reboot.
  3. Install the code-integrity policy (PKCS#7 version 1 signing) and the signed driver package from the Setup kit. The drivers must load.
  4. Turn Secure Boot on and arm the latch. From then on every boot of the internal Windows must have Secure Boot on.
  5. Turn test signing off, reboot. The drivers must still load.

Updates keep the installed key set unless you type a consent to change it.

Checking where you are#

tools/obinstall/src/sbonboard.py steps prints the sequence and the six lines you export on the Windows side. sbonboard.py check <file> reads that file and prints the phase and the next step. It changes nothing and reads nothing else.

Exported line Values
secureboot on, off
testsigning on, off
cks_policy present, absent
obans installed, absent
obans_loaded yes, no
latch armed, unarmed

Not verified#

  • The whole sequence (no VM or hardware run yet).
  • How to export the lines on Windows beyond the table above: the commands that produce each value are not written down yet.
  • Whether the policy on the Setup stick makes Setup run with Secure Boot on.