Merge pull request #1319 from Random-Liu/fix-containerd-build

Fix containerd build, use `libbtrfs-dev` when available.
This commit is contained in:
Mike Brown 2019-10-22 13:11:28 -05:00 committed by GitHub
commit fe757946ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,11 @@ gcloud auth activate-service-account --key-file "${GOOGLE_APPLICATION_CREDENTIAL
# Install dependent libraries.
apt-get update
if apt-cache show libbtrfs-dev > /dev/null; then
apt-get install -y libbtrfs-dev
else
apt-get install -y btrfs-tools
fi
# Kubernetes test infra uses jessie and stretch.
if cat /etc/os-release | grep jessie; then