Skip to content

Commit ffc7830

Browse files
committed
Install packages during the run.
Also, while here, switch from manually running daemontools to the daemontools-run package and move the scratch directory to /home/swarming/.swarming so that LUCI builds on it.
1 parent 2ff49d2 commit ffc7830

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

rcd/rc.conf

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
### Go builder settings
22
ntpdate=YES
3-
builder_name=netbsd-arm64-bsiegert
3+
builder_name=netbsd-arm-bsiegert
44
newfs_scratch=YES
55
scratch_disk=NAME=scratch
6-
scratch_dir=/scratch
6+
scratch_dir=/home/swarming/.swarming
7+
svscan=YES
8+
svscan_datalimit=unlimited
9+
svscan_servicedir=/service
10+
svscan_log=NO
11+
estd=YES
12+
estd_flags="-a -l 20 -h 25"
13+
node_exporter=YES
714
### end Go builder settings

set-up-luci.sh

+12-9
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ install_go_bin() {
4343

4444
###############################
4545

46+
echo "==> Installing useful packages." >&2
47+
if [ -x /usr/pkg/bin/pkgin ]; then
48+
pkgin -y install emacs-nox11 watch estd screen sysupgrade bash go123 w3m vim llvm git-base htop sudo mosh pkg_alternatives clang daemontools daemontools-run node_exporter
49+
else
50+
echo "pkgin not found, please install packages manually" >&2
51+
fi
52+
53+
4654
make_dir /usr/local/bin
4755
make_dir /usr/local/sbin
4856

@@ -62,15 +70,10 @@ else
6270
pax -rw -pp service /
6371
fi
6472

65-
if grep -q svscanboot /etc/rc.local; then
66-
echo "==> /etc/rc.local already contains daemontools initialization." >&2
67-
else
68-
echo "==> Starting daemontools at boot (/etc/rc.conf)." >&2
69-
echo "d\nwq" | ed /etc/rc.local
70-
cat rcd/rc.local >> /etc/rc.local
71-
echo
72-
tail /etc/rc.local
73-
fi
73+
copy_file /usr/pkg/share/examples/rc.d/svscan /etc/rc.d
74+
copy_file /usr/pkg/share/examples/rc.d/node_exporter /etc/rc.d
75+
chmod 555 /etc/rc.d/svscan
76+
chmod 555 /etc/rc.d/node_exporter
7477

7578
copy_file rcd/newfs_scratch /etc/rc.d
7679
chmod 555 /etc/rc.d/newfs_scratch

0 commit comments

Comments
 (0)