|
8 | 8 | set -e
|
9 | 9 | set -u
|
10 | 10 |
|
11 |
| -readonly VERSION="6.4" |
| 11 | +readonly VERSION="6.8" |
12 | 12 | readonly RELNO="${VERSION/./}"
|
13 | 13 | readonly SNAPSHOT=false
|
14 | 14 |
|
15 | 15 | readonly ARCH="${ARCH:-amd64}"
|
16 |
| -readonly MIRROR="${MIRROR:-ftp.usa.openbsd.org}" |
| 16 | +readonly MIRROR="${MIRROR:-cdn.openbsd.org}" |
17 | 17 |
|
18 | 18 | if [[ "${ARCH}" != "amd64" && "${ARCH}" != "i386" ]]; then
|
19 | 19 | echo "ARCH must be amd64 or i386"
|
@@ -46,9 +46,6 @@ function cleanup() {
|
46 | 46 |
|
47 | 47 | trap cleanup EXIT INT
|
48 | 48 |
|
49 |
| -# XXX: Download and save bash, curl, and their dependencies too? |
50 |
| -# Currently we download them from the network during the install process. |
51 |
| - |
52 | 49 | # Create custom siteXX.tgz set.
|
53 | 50 | PKG_ADD_OPTIONS=""
|
54 | 51 | if [[ "$SNAPSHOT" = true ]]; then
|
@@ -117,6 +114,7 @@ Which disk = sd0
|
117 | 114 | Use (W)hole disk or (E)dit the MBR = whole
|
118 | 115 | Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout = auto
|
119 | 116 | URL to autopartitioning template for disklabel = file://disklabel.template
|
| 117 | +Location of sets = cd0 |
120 | 118 | Set name(s) = +* -x* -game* -man* done
|
121 | 119 | Directory does not contain SHA256.sig. Continue without verification = yes
|
122 | 120 | EOF
|
@@ -165,18 +163,7 @@ send "umount /mnt\n"
|
165 | 163 | send "exit\n"
|
166 | 164 |
|
167 | 165 | 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 |
180 | 167 | EOF
|
181 | 168 |
|
182 | 169 | # Create Compute Engine disk image.
|
|
0 commit comments