Skip to content

Commit 44e7675

Browse files
merge top-level
2 parents c7fd6b8 + 7df8871 commit 44e7675

425 files changed

Lines changed: 22500 additions & 10717 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/buildomat/jobs/deploy.sh

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#:
33
#: name = "helios / deploy"
44
#: variety = "basic"
5-
#: target = "lab-2.0-opte-0.39"
5+
#: target = "lab-3.0-opte-0.40"
66
#: output_rules = [
77
#: "%/var/svc/log/oxide-*.log*",
88
#: "%/zone/oxz_*/root/var/svc/log/oxide-*.log*",
@@ -134,6 +134,19 @@ z_swadm () {
134134
pfexec zlogin oxz_switch /opt/oxide/dendrite/bin/swadm $@
135135
}
136136

137+
# only set this if you want to override the version of opte/xde installed by the
138+
# install_opte.sh script
139+
OPTE_COMMIT=""
140+
if [[ "x$OPTE_COMMIT" != "x" ]]; then
141+
curl -sSfOL https://buildomat.eng.oxide.computer/public/file/oxidecomputer/opte/module/$OPTE_COMMIT/xde
142+
pfexec rem_drv xde || true
143+
pfexec mv xde /kernel/drv/amd64/xde
144+
pfexec add_drv xde || true
145+
curl -sSfOL https://buildomat.eng.oxide.computer/public/file/oxidecomputer/opte/release/$OPTE_COMMIT/opteadm
146+
chmod +x opteadm
147+
cp opteadm /tmp/opteadm
148+
pfexec mv opteadm /opt/oxide/opte/bin/opteadm
149+
fi
137150

138151
#
139152
# XXX work around 14537 (UFS should not allow directories to be unlinked) which
@@ -184,24 +197,6 @@ ptime -m tar xvzf /input/package/work/package.tar.gz
184197
# shellcheck source=/dev/null
185198
source .github/buildomat/ci-env.sh
186199

187-
# Source the OPTE override (if any) from the canonical location and apply it.
188-
#
189-
# When set, download the xde driver and opteadm directly from buildomat and
190-
# swap them in. The deploy target is a ramdisk image without pkg(5), so we
191-
# use rem_drv/add_drv instead of the p5p approach used by install_opte.sh
192-
# and releng.
193-
source tools/opte_version_override
194-
if [[ "x$OPTE_COMMIT" != "x" ]]; then
195-
curl -sSfOL "https://buildomat.eng.oxide.computer/public/file/oxidecomputer/opte/module/$OPTE_COMMIT/xde"
196-
pfexec rem_drv xde || true
197-
pfexec mv xde /kernel/drv/amd64/xde
198-
pfexec add_drv xde || true
199-
curl -sSfOL "https://buildomat.eng.oxide.computer/public/file/oxidecomputer/opte/release/$OPTE_COMMIT/opteadm"
200-
chmod +x opteadm
201-
cp opteadm /tmp/opteadm
202-
pfexec mv opteadm /opt/oxide/opte/bin/opteadm
203-
fi
204-
205200
# Ask buildomat for the range of extra addresses that we're allowed to use, and
206201
# break them up into the ranges we need.
207202

@@ -251,7 +246,15 @@ routeadm -e ipv4-forwarding -u
251246
PXA_START="$EXTRA_IP_START"
252247
PXA_END="$EXTRA_IP_END"
253248

254-
pfexec zpool create -f scratch c1t1d0 c2t1d0
249+
# Enumerate the names of NVMe devices on on which one might place a zpool.
250+
#
251+
# N.B. that it is fine to do use "every NVMe device on the box" since this
252+
# script only runs on buildomat workers which do not have any disks used for
253+
# storing anything persistently, and which are PXE-booted...so we're not gonna
254+
# clobber anything that anyone might have cared about on sock and buskin, at
255+
# least.
256+
DISKS=( $(pfexec nvmeadm list -p -o disk) )
257+
pfexec zpool create -f scratch "${DISKS[@]}"
255258

256259
ptime -m \
257260
pfexec ./target/release/xtask virtual-hardware \

0 commit comments

Comments
 (0)