build/env/openbsd-amd64
Joel Sing 1355586135 env/openbsd-amd64: syspatch on first boot
syspatch is currently being invoked at the end of the installation, which
means we're trying to patch the installation ramdisk kernel, rather than the
generic kernel. Instead, invoke syspatch during the first boot of the generic
kernel. Move pkg_add as well, since that is also generally safer to run outside
of the installation.

Update golang/go#35712
Update golang/go#42542

Change-Id: Icbb384816de5859078a0183919626d223fb0060f
Reviewed-on: https://go-review.googlesource.com/c/build/+/278732
Trust: Joel Sing <joel@sing.id.au>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2020-12-17 20:07:03 +00:00
..
.gitignore env: update openbsd-{386,amd64} builder images to OpenBSD 5.8 2016-01-24 22:52:53 +00:00
README env/openbsd-amd64: create OpenBSD 6.8 builder images 2020-11-09 16:34:47 +00:00
make.bash env/openbsd-amd64: syspatch on first boot 2020-12-17 20:07:03 +00:00

README

make.bash creates a Google Compute Engine VM image to run the Go
OpenBSD builder, booting up to run the buildlet.

make.bash should be run on a Linux box with expect and qemu.
Debian packages: expect qemu-utils qemu-system-x86.

After it completes, it creates a file openbsd-amd64-gce.tar.gz

Then:
    gsutil cp -a public-read openbsd-amd64-gce.tar.gz gs://go-builder-data/openbsd-amd64-68.tar.gz
Or just use the web UI at:
    https://console.developers.google.com/project/symbolic-datum-552/storage/browser/go-builder-data/

Then:
   gcloud compute --project symbolic-datum-552 images delete openbsd-amd64-68
   gcloud compute --project symbolic-datum-552 images create openbsd-amd64-68 --source-uri gs://go-builder-data/openbsd-amd64-68.tar.gz

The VM needs to be run with the GCE metadata attribute "buildlet-binary-url" set to a URL
of the OpenBSD buildlet (cross-compiled, typically).

    buildlet-binary-url == https://storage.googleapis.com/go-builder-data/buildlet.openbsd-amd64