Fix containerd build, use libbtrfs-dev when available.

Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
Lantao Liu 2019-10-21 23:12:34 -07:00
parent 815f3e727d
commit 8bfff7dbd2

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