From 8bfff7dbd2c3e594bfb13b82f48ccc7c1971e5a4 Mon Sep 17 00:00:00 2001 From: Lantao Liu Date: Mon, 21 Oct 2019 23:12:34 -0700 Subject: [PATCH] Fix containerd build, use `libbtrfs-dev` when available. Signed-off-by: Lantao Liu --- test/build-utils.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/build-utils.sh b/test/build-utils.sh index cf1939be3..fcade6cd3 100755 --- a/test/build-utils.sh +++ b/test/build-utils.sh @@ -30,7 +30,11 @@ gcloud auth activate-service-account --key-file "${GOOGLE_APPLICATION_CREDENTIAL # Install dependent libraries. apt-get update -apt-get install -y btrfs-tools +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