Skip to content

Commit

Permalink
[buildbot] Use nfs to share build dir with QEMU
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka committed Jul 11, 2022
1 parent ef4969e commit ddaf9d4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions buildbot/install_deps.sh
Expand Up @@ -57,6 +57,7 @@
mdadm \
m4 \
make \
nfs-kernel-server \
ninja-build \
openssh-client \
pkg-config \
Expand Down
5 changes: 5 additions & 0 deletions buildbot/start_script.sh
Expand Up @@ -61,6 +61,11 @@ EOF

sysctl --system

cat <<EOF >/etc/exports
/b/${BOT_DIR} 127.0.0.1(rw,sync,all_squash,insecure,anonuid=999,anongid=999,no_subtree_check)
EOF
exportfs -rav

# Generate Debian image for QEMU bot.
(
[[ -f ${QEMU_IMAGE_DIR}/debian.img ]] && exit 0
Expand Down
3 changes: 2 additions & 1 deletion hwaddress-sanitizer/create_qemu_image.sh
Expand Up @@ -17,7 +17,8 @@ if [[ -f /etc/os-release ]] ; then
RELEASE=${VERSION_CODENAME}
fi

: ${PREINSTALL_PKGS:="openssh-server"} # Comma-separated list of packages.
# Comma-separated list of packages.
: ${PREINSTALL_PKGS:="openssh-server,nfs-common"}

readonly DIR="$(mktemp -d)"
readonly IMAGE_DIR="${DIR}/${RELEASE}"
Expand Down

0 comments on commit ddaf9d4

Please sign in to comment.