mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-30 20:24:09 +01:00
build-base.sh does the unattended install (about 18 minutes) and build-golden.sh puts policies, Defender and the display driver on top of it in about 2.5 minutes through the guest agent (provision.ps1). A qcow2 chain with a relative backing path keeps the two together. build-ref.sh builds komorebi and komorebic of any commit, and KOMOREBI_E2E_BINS makes nix run .#e2e-windows test those binaries.
18 lines
849 B
Bash
Executable File
18 lines
849 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Builds the golden Windows image on top of a base from build-base.sh: boots
|
|
# an overlay of the base, provisions it through the guest agent (provision.ps1:
|
|
# policies, Defender, the display driver) and shuts it down, in about 2.5
|
|
# minutes. OUTDIR gets disk.qcow2, which is backed by the base through a
|
|
# relative path (so the two can move together), vars.fd and tpm/; the per-run
|
|
# overlays are backed by that.
|
|
#
|
|
# usage: build-golden.sh BASE_DIR OUTDIR QXLDOD_DIR
|
|
# QXLDOD_DIR is virtio-win's qxldod/w10/amd64, the display driver that gives a
|
|
# second QXL device a monitor.
|
|
# needs on PATH: qemu-system-x86_64 qemu-img swtpm
|
|
# needs in env: OVMF_FD (an OVMF build with tpmSupport, without SMM)
|
|
# run from e2e/ with PYTHONPATH=lib:. (the nix app does)
|
|
set -euo pipefail
|
|
|
|
exec python -m platforms.qemu_windows.build_golden "$@"
|