Skip to content

Commit

Permalink
mount proc and sys in Debian package build chroot (#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcsanchez97 authored Jan 9, 2025
1 parent b193dba commit 5b381e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .evergreen/debian_package_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ for arg in "$@"; do
done

on_exit () {
sudo umount ./unstable-chroot/proc ./unstable-chroot/sys
if [ -e ./unstable-chroot/debootstrap/debootstrap.log ]; then
echo "Dumping debootstrap.log"
cat ./unstable-chroot/debootstrap/debootstrap.log
Expand Down Expand Up @@ -64,6 +65,8 @@ _dbs_args+=(unstable)
git clone https://salsa.debian.org/installer-team/debootstrap.git debootstrap.git
export DEBOOTSTRAP_DIR=`pwd`/debootstrap.git
sudo -E ./debootstrap.git/debootstrap "${_dbs_args[@]}" ./unstable-chroot/ http://cdn-aws.deb.debian.org/debian
sudo mount sysfs ./unstable-chroot/sys -t sysfs
sudo mount proc ./unstable-chroot/proc -t proc
cp -a libmongocrypt ./unstable-chroot/tmp/
sudo chroot ./unstable-chroot /bin/bash -c '(set -o xtrace && \
apt-get install -y build-essential git-buildpackage fakeroot debhelper cmake curl ca-certificates libssl-dev pkg-config libbson-dev libintelrdfpmath-dev python3-packaging && \
Expand Down

0 comments on commit 5b381e9

Please sign in to comment.