Skip to content

Commit a438e8c

Browse files
committed
env/openbsd-amd64: create OpenBSD 6.8 builder images
Update the openbsd-{386,amd64} builder script to create OpenBSD 6.8 images. Updates golang/go#35712 Change-Id: I7b306f7c99c02ae0c2eab57bdf2c463b11aa507f Reviewed-on: https://go-review.googlesource.com/c/build/+/268297 Trust: Joel Sing <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 788b5c2 commit a438e8c

File tree

2 files changed

+7
-20
lines changed

2 files changed

+7
-20
lines changed

env/openbsd-amd64/README

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ Debian packages: expect qemu-utils qemu-system-x86.
77
After it completes, it creates a file openbsd-amd64-gce.tar.gz
88

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

1414
Then:
15-
gcloud compute --project symbolic-datum-552 images delete openbsd-amd64-64-snap1
16-
gcloud compute --project symbolic-datum-552 images create openbsd-amd64-64-snap1 --source-uri gs://go-builder-data/openbsd-amd64-64-snap1.tar.gz
15+
gcloud compute --project symbolic-datum-552 images delete openbsd-amd64-68
16+
gcloud compute --project symbolic-datum-552 images create openbsd-amd64-68 --source-uri gs://go-builder-data/openbsd-amd64-68.tar.gz
1717

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

env/openbsd-amd64/make.bash

+4-17
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
set -e
99
set -u
1010

11-
readonly VERSION="6.4"
11+
readonly VERSION="6.8"
1212
readonly RELNO="${VERSION/./}"
1313
readonly SNAPSHOT=false
1414

1515
readonly ARCH="${ARCH:-amd64}"
16-
readonly MIRROR="${MIRROR:-ftp.usa.openbsd.org}"
16+
readonly MIRROR="${MIRROR:-cdn.openbsd.org}"
1717

1818
if [[ "${ARCH}" != "amd64" && "${ARCH}" != "i386" ]]; then
1919
echo "ARCH must be amd64 or i386"
@@ -46,9 +46,6 @@ function cleanup() {
4646

4747
trap cleanup EXIT INT
4848

49-
# XXX: Download and save bash, curl, and their dependencies too?
50-
# Currently we download them from the network during the install process.
51-
5249
# Create custom siteXX.tgz set.
5350
PKG_ADD_OPTIONS=""
5451
if [[ "$SNAPSHOT" = true ]]; then
@@ -117,6 +114,7 @@ Which disk = sd0
117114
Use (W)hole disk or (E)dit the MBR = whole
118115
Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout = auto
119116
URL to autopartitioning template for disklabel = file://disklabel.template
117+
Location of sets = cd0
120118
Set name(s) = +* -x* -game* -man* done
121119
Directory does not contain SHA256.sig. Continue without verification = yes
122120
EOF
@@ -165,18 +163,7 @@ send "umount /mnt\n"
165163
send "exit\n"
166164
167165
expect timeout { exit 1 } "CONGRATULATIONS!"
168-
169-
# There is some form of race condition with OpenBSD 6.2 MP
170-
# and qemu, which can result in init(1) failing to run /bin/sh
171-
# the first time around...
172-
expect {
173-
timeout { exit 1 }
174-
"Enter pathname of shell or RETURN for sh:" {
175-
send "\nexit\n"
176-
expect timeout { exit 1 } eof
177-
}
178-
eof
179-
}
166+
expect timeout { exit 1 } eof
180167
EOF
181168

182169
# Create Compute Engine disk image.

0 commit comments

Comments
 (0)