1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459 |
+ cd builds.sr.ht/images/openbsd/old
+ doas ./genimg amd64
+ : 7.4
+ arch=amd64
+ openbsd_sets=base comp xbase xshare
+ openbsd_kernel=bsd.mp
+ openbsd_installurl=https://cdn.openbsd.org/pub/OpenBSD
+ echo 7.4
+ tr -d .
+ short_version=74
+ image_size=16g
+ image_packages=bash git
+ snapshot=NO
+ pkg_add_params=
+ openbsd_public_key=openbsd-74-base.pub
+ run_syspatch=YES
+ openbsd_bootstrap=NO
+ uname -r
+ [ 7.5 != 7.4 ]
+ [ NO = NO ]
+ openbsd_bootstrap=YES
+ [ NO = YES ]
+ mirror_dir=7.4
Will run syspatch: YES
+ echo Will run syspatch: YES
+ BUILD_DIR=/home/build/builds.sr.ht/images/openbsd/old
+ mkdir -p workdir
+ mkdir -p amd64
+ cd_workdir
+ set_files=
+ set_files= base74.tgz
+ set_files= base74.tgz comp74.tgz
+ set_files= base74.tgz comp74.tgz xbase74.tgz
+ set_files= base74.tgz comp74.tgz xbase74.tgz xshare74.tgz
+ test -f base74.tgz
+ ftp https://cdn.openbsd.org/pub/OpenBSD/7.4/amd64/base74.tgz
+ test -f comp74.tgz
+ ftp https://cdn.openbsd.org/pub/OpenBSD/7.4/amd64/comp74.tgz
+ test -f xbase74.tgz
+ ftp https://cdn.openbsd.org/pub/OpenBSD/7.4/amd64/xbase74.tgz
+ test -f xshare74.tgz
+ ftp https://cdn.openbsd.org/pub/OpenBSD/7.4/amd64/xshare74.tgz
+ test -f bsd.mp
+ ftp https://cdn.openbsd.org/pub/OpenBSD/7.4/amd64/bsd.mp
+ test -f SHA256.sig
+ ftp https://cdn.openbsd.org/pub/OpenBSD/7.4/amd64/SHA256.sig
+ test -f SHA256
+ ftp https://cdn.openbsd.org/pub/OpenBSD/7.4/amd64/SHA256
+ signify -Cp /etc/signify/openbsd-74-base.pub -x SHA256.sig base74.tgz comp74.tgz xbase74.tgz xshare74.tgz bsd.mp
Signature Verified
base74.tgz: OK
bsd.mp: OK
comp74.tgz: OK
xbase74.tgz: OK
xshare74.tgz: OK
+ rm -f root.img
+ create_image root.img 16g
vmctl: raw imagefile created
+ vnconfig vnd0 root.img
+ fdisk -iy vnd0
Writing MBR at offset 0.
+ cat
+ > /tmp/partitions
+ << EOF
+ disklabel -w -A -T /tmp/partitions vnd0
+ tar -zxphf base74.tgz -C /mnt
+ tar -zxphf comp74.tgz -C /mnt
+ tar -zxphf xbase74.tgz -C /mnt
+ tar -zxphf xshare74.tgz -C /mnt
+ tar -zxphf /mnt/var/sysmerge/etc.tgz -C /mnt
+ tar -zxphf /mnt/var/sysmerge/xetc.tgz -C /mnt
+ cat
+ > /mnt/etc/fstab
+ << EOF
+ cd /mnt/dev
+ sh MAKEDEV all
+ cd_workdir
+ cat
+ >> /mnt/etc/ssh/sshd_config
+ << EOF
+ echo build
+ > /mnt/etc/myname
+ echo 10.0.2.2
+ > /mnt/etc/mygate
+ echo inet 10.0.2.15 255.255.255.128
+ > /mnt/etc/hostname.vio0
+ echo nameserver 8.8.8.8
+ > /mnt/etc/resolv.conf
+ echo nameserver 8.8.4.4
+ >> /mnt/etc/resolv.conf
+ echo 127.0.0.1 localhost.localdomain localhost
+ > /mnt/etc/hosts
+ echo ::1 localhost.localdomain localhost
+ >> /mnt/etc/hosts
+ echo https://cdn.openbsd.org/pub/OpenBSD
+ > /mnt/etc/installurl
+ ln -sf /usr/share/zoneinfo/UTC /mnt/etc/localtime
+ cat
+ >> /mnt/etc/rc.conf.local
+ << EOF
+ cp bsd.mp /mnt/bsd
NOTE: Building bootstrap image
+ [ YES = NO ]
+ echo NOTE: Building bootstrap image
+ package_url=https://cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64
+ pkg_db=/mnt/var/db/pkg
+ ftp -o packagelist https://cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64/
+ set -- bash-[0-9].*.tgz git-[0-9].*.tgz
+ [ 2 -ne 0 ]
+ pkg=bash-[0-9].*.tgz
+ shift
+ grep -o "bash-[0-9].*.tgz" packagelist
+ tr -d "
+ package_file=bash-5.2.15.tgz
+ package_name=bash-5.2.15
+ ftp https://cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64/bash-5.2.15.tgz
+ tar -C /mnt/usr/local -xpzf bash-5.2.15.tgz
+ mkdir -p /mnt/var/db/pkg/bash-5.2.15
+ mv /mnt/usr/local/+CONTENTS /mnt/var/db/pkg/bash-5.2.15
+ mv /mnt/usr/local/+DESC /mnt/var/db/pkg/bash-5.2.15
+ grep @depend /mnt/var/db/pkg/bash-5.2.15/+CONTENTS
+ cut -d: -f3
+ [ -d /mnt/var/db/pkg/gettext-runtime-0.22.2 ]
+ set -- git-[0-9].*.tgz gettext-runtime-0.22.2.tgz
+ mkdir -p /mnt/var/db/pkg/gettext-runtime-0.22.2
+ echo bash-5.2.15
+ >> /mnt/var/db/pkg/gettext-runtime-0.22.2/+REQUIRED_BY
+ echo gettext-runtime-0.22.2
+ >> /mnt/var/db/pkg/bash-5.2.15/+REQUIRING
+ [ 2 -ne 0 ]
+ pkg=git-[0-9].*.tgz
+ shift
+ tr -d "
+ grep -o "git-[0-9].*.tgz" packagelist
+ package_file=git-2.42.0.tgz
+ package_name=git-2.42.0
+ ftp https://cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64/git-2.42.0.tgz
+ tar -C /mnt/usr/local -xpzf git-2.42.0.tgz
tar: Removing leading / from absolute path names in the archive
+ mkdir -p /mnt/var/db/pkg/git-2.42.0
+ mv /mnt/usr/local/+CONTENTS /mnt/var/db/pkg/git-2.42.0
+ mv /mnt/usr/local/+DESC /mnt/var/db/pkg/git-2.42.0
+ grep @depend /mnt/var/db/pkg/git-2.42.0/+CONTENTS
+ cut -d: -f3
+ [ -d /mnt/var/db/pkg/cvsps-2.1p2 ]
+ set -- gettext-runtime-0.22.2.tgz cvsps-2.1p2.tgz
+ mkdir -p /mnt/var/db/pkg/cvsps-2.1p2
+ echo git-2.42.0
+ >> /mnt/var/db/pkg/cvsps-2.1p2/+REQUIRED_BY
+ echo cvsps-2.1p2
+ >> /mnt/var/db/pkg/git-2.42.0/+REQUIRING
+ [ -d /mnt/var/db/pkg/gettext-runtime-0.22.2 ]
+ mkdir -p /mnt/var/db/pkg/gettext-runtime-0.22.2
+ echo git-2.42.0
+ >> /mnt/var/db/pkg/gettext-runtime-0.22.2/+REQUIRED_BY
+ echo gettext-runtime-0.22.2
+ >> /mnt/var/db/pkg/git-2.42.0/+REQUIRING
+ [ -d /mnt/var/db/pkg/gitwrapper-0.93 ]
+ set -- gettext-runtime-0.22.2.tgz cvsps-2.1p2.tgz gitwrapper-0.93.tgz
+ mkdir -p /mnt/var/db/pkg/gitwrapper-0.93
+ echo git-2.42.0
+ >> /mnt/var/db/pkg/gitwrapper-0.93/+REQUIRED_BY
+ echo gitwrapper-0.93
+ >> /mnt/var/db/pkg/git-2.42.0/+REQUIRING
+ [ -d /mnt/var/db/pkg/p5-Error-0.17029 ]
+ set -- gettext-runtime-0.22.2.tgz cvsps-2.1p2.tgz gitwrapper-0.93.tgz p5-Error-0.17029.tgz
+ mkdir -p /mnt/var/db/pkg/p5-Error-0.17029
+ echo git-2.42.0
+ >> /mnt/var/db/pkg/p5-Error-0.17029/+REQUIRED_BY
+ echo p5-Error-0.17029
+ >> /mnt/var/db/pkg/git-2.42.0/+REQUIRING
+ [ -d /mnt/var/db/pkg/p5-Mail-Tools-2.21p0 ]
+ set -- gettext-runtime-0.22.2.tgz cvsps-2.1p2.tgz gitwrapper-0.93.tgz p5-Error-0.17029.tgz p5-Mail-Tools-2.21p0.tgz
+ mkdir -p /mnt/var/db/pkg/p5-Mail-Tools-2.21p0
+ echo git-2.42.0
+ >> /mnt/var/db/pkg/p5-Mail-Tools-2.21p0/+REQUIRED_BY
+ echo p5-Mail-Tools-2.21p0
+ >> /mnt/var/db/pkg/git-2.42.0/+REQUIRING
+ [ -d /mnt/var/db/pkg/curl-8.3.0p0 ]
+ set -- gettext-runtime-0.22.2.tgz cvsps-2.1p2.tgz gitwrapper-0.93.tgz p5-Error-0.17029.tgz p5-Mail-Tools-2.21p0.tgz curl-8.3.0p0.tgz
+ mkdir -p /mnt/var/db/pkg/curl-8.3.0p0
+ echo git-2.42.0
+ >> /mnt/var/db/pkg/curl-8.3.0p0/+REQUIRED_BY
+ echo curl-8.3.0p0
+ >> /mnt/var/db/pkg/git-2.42.0/+REQUIRING
+ [ 6 -ne 0 ]
+ pkg=gettext-runtime-0.22.2.tgz
+ shift
+ grep -o "gettext-runtime-0.22.2.tgz" packagelist
+ tr -d "
+ package_file=gettext-runtime-0.22.2.tgz
+ package_name=gettext-runtime-0.22.2
+ ftp https://cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64/gettext-runtime-0.22.2.tgz
+ tar -C /mnt/usr/local -xpzf gettext-runtime-0.22.2.tgz
+ mkdir -p /mnt/var/db/pkg/gettext-runtime-0.22.2
+ mv /mnt/usr/local/+CONTENTS /mnt/var/db/pkg/gettext-runtime-0.22.2
+ mv /mnt/usr/local/+DESC /mnt/var/db/pkg/gettext-runtime-0.22.2
+ grep @depend /mnt/var/db/pkg/gettext-runtime-0.22.2/+CONTENTS
+ cut -d: -f3
+ [ -d /mnt/var/db/pkg/libiconv-1.17 ]
+ set -- cvsps-2.1p2.tgz gitwrapper-0.93.tgz p5-Error-0.17029.tgz p5-Mail-Tools-2.21p0.tgz curl-8.3.0p0.tgz libiconv-1.17.tgz
+ mkdir -p /mnt/var/db/pkg/libiconv-1.17
+ echo gettext-runtime-0.22.2
+ >> /mnt/var/db/pkg/libiconv-1.17/+REQUIRED_BY
+ echo libiconv-1.17
+ >> /mnt/var/db/pkg/gettext-runtime-0.22.2/+REQUIRING
+ [ 6 -ne 0 ]
+ pkg=cvsps-2.1p2.tgz
+ shift
+ grep -o "cvsps-2.1p2.tgz" packagelist
+ tr -d "
+ package_file=cvsps-2.1p2.tgz
+ package_name=cvsps-2.1p2
+ ftp https://cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64/cvsps-2.1p2.tgz
+ tar -C /mnt/usr/local -xpzf cvsps-2.1p2.tgz
+ mkdir -p /mnt/var/db/pkg/cvsps-2.1p2
+ mv /mnt/usr/local/+CONTENTS /mnt/var/db/pkg/cvsps-2.1p2
+ mv /mnt/usr/local/+DESC /mnt/var/db/pkg/cvsps-2.1p2
+ grep @depend /mnt/var/db/pkg/cvsps-2.1p2/+CONTENTS
+ cut -d: -f3
+ [ 5 -ne 0 ]
+ pkg=gitwrapper-0.93.tgz
+ shift
+ grep -o "gitwrapper-0.93.tgz" packagelist
+ tr -d "
+ package_file=gitwrapper-0.93.tgz
+ package_name=gitwrapper-0.93
+ ftp https://cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64/gitwrapper-0.93.tgz
+ tar -C /mnt/usr/local -xpzf gitwrapper-0.93.tgz
+ mkdir -p /mnt/var/db/pkg/gitwrapper-0.93
+ mv /mnt/usr/local/+CONTENTS /mnt/var/db/pkg/gitwrapper-0.93
+ mv /mnt/usr/local/+DESC /mnt/var/db/pkg/gitwrapper-0.93
+ grep @depend /mnt/var/db/pkg/gitwrapper-0.93/+CONTENTS
+ cut -d: -f3
+ [ 4 -ne 0 ]
+ pkg=p5-Error-0.17029.tgz
+ shift
+ grep -o "p5-Error-0.17029.tgz" packagelist
+ tr -d "
+ package_file=p5-Error-0.17029.tgz
+ package_name=p5-Error-0.17029
+ ftp https://cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64/p5-Error-0.17029.tgz
+ tar -C /mnt/usr/local -xpzf p5-Error-0.17029.tgz
+ mkdir -p /mnt/var/db/pkg/p5-Error-0.17029
+ mv /mnt/usr/local/+CONTENTS /mnt/var/db/pkg/p5-Error-0.17029
+ mv /mnt/usr/local/+DESC /mnt/var/db/pkg/p5-Error-0.17029
+ grep @depend /mnt/var/db/pkg/p5-Error-0.17029/+CONTENTS
+ cut -d: -f3
+ [ 3 -ne 0 ]
+ pkg=p5-Mail-Tools-2.21p0.tgz
+ shift
+ grep -o "p5-Mail-Tools-2.21p0.tgz" packagelist
+ tr -d "
+ package_file=p5-Mail-Tools-2.21p0.tgz
+ package_name=p5-Mail-Tools-2.21p0
+ ftp https://cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64/p5-Mail-Tools-2.21p0.tgz
+ tar -C /mnt/usr/local -xpzf p5-Mail-Tools-2.21p0.tgz
+ mkdir -p /mnt/var/db/pkg/p5-Mail-Tools-2.21p0
+ mv /mnt/usr/local/+CONTENTS /mnt/var/db/pkg/p5-Mail-Tools-2.21p0
+ mv /mnt/usr/local/+DESC /mnt/var/db/pkg/p5-Mail-Tools-2.21p0
+ grep @depend /mnt/var/db/pkg/p5-Mail-Tools-2.21p0/+CONTENTS
+ cut -d: -f3
+ [ -d /mnt/var/db/pkg/p5-Time-TimeDate-2.33 ]
+ set -- curl-8.3.0p0.tgz libiconv-1.17.tgz p5-Time-TimeDate-2.33.tgz
+ mkdir -p /mnt/var/db/pkg/p5-Time-TimeDate-2.33
+ echo p5-Mail-Tools-2.21p0
+ >> /mnt/var/db/pkg/p5-Time-TimeDate-2.33/+REQUIRED_BY
+ echo p5-Time-TimeDate-2.33
+ >> /mnt/var/db/pkg/p5-Mail-Tools-2.21p0/+REQUIRING
+ [ 3 -ne 0 ]
+ pkg=curl-8.3.0p0.tgz
+ shift
+ tr -d "
+ grep -o "curl-8.3.0p0.tgz" packagelist
+ package_file=curl-8.3.0p0.tgz
+ package_name=curl-8.3.0p0
+ ftp https://cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64/curl-8.3.0p0.tgz
+ tar -C /mnt/usr/local -xpzf curl-8.3.0p0.tgz
+ mkdir -p /mnt/var/db/pkg/curl-8.3.0p0
+ mv /mnt/usr/local/+CONTENTS /mnt/var/db/pkg/curl-8.3.0p0
+ mv /mnt/usr/local/+DESC /mnt/var/db/pkg/curl-8.3.0p0
+ grep @depend /mnt/var/db/pkg/curl-8.3.0p0/+CONTENTS
+ cut -d: -f3
+ [ -d /mnt/var/db/pkg/ngtcp2-0.19.1 ]
+ set -- libiconv-1.17.tgz p5-Time-TimeDate-2.33.tgz ngtcp2-0.19.1.tgz
+ mkdir -p /mnt/var/db/pkg/ngtcp2-0.19.1
+ echo curl-8.3.0p0
+ >> /mnt/var/db/pkg/ngtcp2-0.19.1/+REQUIRED_BY
+ echo ngtcp2-0.19.1
+ >> /mnt/var/db/pkg/curl-8.3.0p0/+REQUIRING
+ [ -d /mnt/var/db/pkg/nghttp2-1.56.0 ]
+ set -- libiconv-1.17.tgz p5-Time-TimeDate-2.33.tgz ngtcp2-0.19.1.tgz nghttp2-1.56.0.tgz
+ mkdir -p /mnt/var/db/pkg/nghttp2-1.56.0
+ echo curl-8.3.0p0
+ >> /mnt/var/db/pkg/nghttp2-1.56.0/+REQUIRED_BY
+ echo nghttp2-1.56.0
+ >> /mnt/var/db/pkg/curl-8.3.0p0/+REQUIRING
+ [ -d /mnt/var/db/pkg/nghttp3-0.15.0 ]
+ set -- libiconv-1.17.tgz p5-Time-TimeDate-2.33.tgz ngtcp2-0.19.1.tgz nghttp2-1.56.0.tgz nghttp3-0.15.0.tgz
+ mkdir -p /mnt/var/db/pkg/nghttp3-0.15.0
+ echo curl-8.3.0p0
+ >> /mnt/var/db/pkg/nghttp3-0.15.0/+REQUIRED_BY
+ echo nghttp3-0.15.0
+ >> /mnt/var/db/pkg/curl-8.3.0p0/+REQUIRING
+ [ 5 -ne 0 ]
+ pkg=libiconv-1.17.tgz
+ shift
+ grep -o "libiconv-1.17.tgz" packagelist
+ tr -d "
+ package_file=libiconv-1.17.tgz
+ package_name=libiconv-1.17
+ ftp https://cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64/libiconv-1.17.tgz
+ tar -C /mnt/usr/local -xpzf libiconv-1.17.tgz
+ mkdir -p /mnt/var/db/pkg/libiconv-1.17
+ mv /mnt/usr/local/+CONTENTS /mnt/var/db/pkg/libiconv-1.17
+ mv /mnt/usr/local/+DESC /mnt/var/db/pkg/libiconv-1.17
+ grep @depend /mnt/var/db/pkg/libiconv-1.17/+CONTENTS
+ cut -d: -f3
+ [ 4 -ne 0 ]
+ pkg=p5-Time-TimeDate-2.33.tgz
+ shift
+ grep -o "p5-Time-TimeDate-2.33.tgz" packagelist
+ tr -d "
+ package_file=p5-Time-TimeDate-2.33.tgz
+ package_name=p5-Time-TimeDate-2.33
+ ftp https://cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64/p5-Time-TimeDate-2.33.tgz
+ tar -C /mnt/usr/local -xpzf p5-Time-TimeDate-2.33.tgz
+ mkdir -p /mnt/var/db/pkg/p5-Time-TimeDate-2.33
+ mv /mnt/usr/local/+CONTENTS /mnt/var/db/pkg/p5-Time-TimeDate-2.33
+ mv /mnt/usr/local/+DESC /mnt/var/db/pkg/p5-Time-TimeDate-2.33
+ grep @depend /mnt/var/db/pkg/p5-Time-TimeDate-2.33/+CONTENTS
+ cut -d: -f3
+ [ 3 -ne 0 ]
+ pkg=ngtcp2-0.19.1.tgz
+ shift
+ grep -o "ngtcp2-0.19.1.tgz" packagelist
+ tr -d "
+ package_file=ngtcp2-0.19.1.tgz
+ package_name=ngtcp2-0.19.1
+ ftp https://cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64/ngtcp2-0.19.1.tgz
+ tar -C /mnt/usr/local -xpzf ngtcp2-0.19.1.tgz
+ mkdir -p /mnt/var/db/pkg/ngtcp2-0.19.1
+ mv /mnt/usr/local/+CONTENTS /mnt/var/db/pkg/ngtcp2-0.19.1
+ mv /mnt/usr/local/+DESC /mnt/var/db/pkg/ngtcp2-0.19.1
+ grep @depend /mnt/var/db/pkg/ngtcp2-0.19.1/+CONTENTS
+ cut -d: -f3
+ [ 2 -ne 0 ]
+ pkg=nghttp2-1.56.0.tgz
+ shift
+ grep -o "nghttp2-1.56.0.tgz" packagelist
+ tr -d "
+ package_file=nghttp2-1.56.0.tgz
+ package_name=nghttp2-1.56.0
+ ftp https://cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64/nghttp2-1.56.0.tgz
+ tar -C /mnt/usr/local -xpzf nghttp2-1.56.0.tgz
+ mkdir -p /mnt/var/db/pkg/nghttp2-1.56.0
+ mv /mnt/usr/local/+CONTENTS /mnt/var/db/pkg/nghttp2-1.56.0
+ mv /mnt/usr/local/+DESC /mnt/var/db/pkg/nghttp2-1.56.0
+ grep @depend /mnt/var/db/pkg/nghttp2-1.56.0/+CONTENTS
+ cut -d: -f3
+ [ 1 -ne 0 ]
+ pkg=nghttp3-0.15.0.tgz
+ shift
+ grep -o "nghttp3-0.15.0.tgz" packagelist
+ tr -d "
+ package_file=nghttp3-0.15.0.tgz
+ package_name=nghttp3-0.15.0
+ ftp https://cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64/nghttp3-0.15.0.tgz
+ tar -C /mnt/usr/local -xpzf nghttp3-0.15.0.tgz
+ mkdir -p /mnt/var/db/pkg/nghttp3-0.15.0
+ mv /mnt/usr/local/+CONTENTS /mnt/var/db/pkg/nghttp3-0.15.0
+ mv /mnt/usr/local/+DESC /mnt/var/db/pkg/nghttp3-0.15.0
+ grep @depend /mnt/var/db/pkg/nghttp3-0.15.0/+CONTENTS
+ cut -d: -f3
+ [ 0 -ne 0 ]
+ chown -R root:wheel /mnt/var/db/pkg
+ echo /usr/local/bin/bash
+ >> /mnt/etc/shells
+ sed -i /^build:/d /mnt/etc/master.passwd
+ cp -r /mnt/etc/skel /mnt/home/build
+ chown -R 1000:1000 /mnt/home/build
+ echo build:*:1000:
+ >> /mnt/etc/group
+ echo build::1000:1000:pbuild:0:0:Build user:/home/build:/usr/local/bin/bash
+ >> /mnt/etc/master.passwd
+ echo permit nopass keepenv build
+ > /mnt/etc/doas.conf
+ pwd_mkdb -p -d /mnt/etc /mnt/etc/master.passwd
+ cat
+ > /mnt/usr/libexec/reorder_kernel
+ << EOF
+ echo boot
+ > /mnt/etc/boot.conf
+ cat
+ > /mnt/home/build/.gitconfig
+ << EOF
+ chown build:build /mnt/home/build/.gitconfig
+ makefs /dev/vnd0a /mnt
Calculated size of `/dev/vnd0a': 1364770816 bytes, 19907 inodes
Extent size set to 16384
/dev/vnd0a: 1301.5MB (2665568 sectors) block size 16384, fragment size 2048
using 6 cylinder groups of 218.86MB, 14007 blks, 3456 inodes.
super-block backups (for fsck -b #) at:
32, 448256, 896480, 1344704, 1792928, 2241152,
Populating `/dev/vnd0a'
Image `/dev/vnd0a' complete
+ growfs -y /dev/vnd0a
new filesystem size is: 8388576 frags
Warning: 385728 sector(s) cannot be allocated.
growfs: 16195.6MB (33168576 sectors) block size 16384, fragment size 2048
using 74 cylinder groups of 218.86MB, 14007 blks, 3456 inodes.
super-block backups (for fsck -b #) at:
2689376, 3137600, 3585824, 4034048, 4482272, 4930496, 5378720, 5826944,
6275168, 6723392, 7171616, 7619840, 8068064, 8516288, 8964512, 9412736,
9860960, 10309184, 10757408, 11205632, 11653856, 12102080, 12550304, 12998528,
13446752, 13894976, 14343200, 14791424, 15239648, 15687872, 16136096,
16584320, 17032544, 17480768, 17928992, 18377216, 18825440, 19273664,
19721888, 20170112, 20618336, 21066560, 21514784, 21963008, 22411232,
22859456, 23307680, 23755904, 24204128, 24652352, 25100576, 25548800,
25997024, 26445248, 26893472, 27341696, 27789920, 28238144, 28686368,
29134592, 29582816, 30031040, 30479264, 30927488, 31375712, 31823936,
32272160, 32720384
+ fsck -y /dev/vnd0a
** /dev/rvnd0a
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
19906 files, 638392 used, 7636575 free (7 frags, 954571 blocks, 0.0% fragmentation)
MARK FILE SYSTEM CLEAN? yes
***** FILE SYSTEM WAS MODIFIED *****
+ sync
+ mount /dev/vnd0a /mnt
+ installboot -vr /mnt vnd0
Using /mnt as root
installing bootstrap on /dev/rvnd0c
using first-stage /mnt/usr/mdec/biosboot, second-stage /mnt/usr/mdec/boot
copying /mnt/usr/mdec/boot to /mnt/boot
looking for superblock at 65536
bad superblock magic 0x0
looking for superblock at 8192
found valid ffs1 superblock
/mnt/boot is 6 blocks x 16384 bytes
fs block shift 2; part offset 128; inode block 784416, offset 552
expecting 32-bit fs blocks (incr 0)
master boot record (MBR) at sector 0
partition 3: type 0xA6 offset 128 size 33554304
/mnt/usr/mdec/biosboot will be written at sector 128
+ umount /mnt
+ vnconfig -u vnd0
+ cd_workdir
+ vmctl create -i root.img ../amd64/root.img.qcow2
vmctl: qcow2 imagefile created
+ chmod 644 ../amd64/root.img.qcow2
|