Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit c229ad5

Browse files
committed
Fix containerd build, use libbtrfs-dev when available.
Signed-off-by: Lantao Liu <[email protected]>
1 parent 80959d3 commit c229ad5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/build-utils.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ gcloud auth activate-service-account --key-file "${GOOGLE_APPLICATION_CREDENTIAL
3030

3131
# Install dependent libraries.
3232
apt-get update
33-
apt-get install -y btrfs-tools
33+
if apt-cache show libbtrfs-dev > /dev/null; then
34+
apt-get install -y libbtrfs-dev
35+
else
36+
apt-get install -y btrfs-tools
37+
fi
3438

3539
# Kubernetes test infra uses jessie and stretch.
3640
if cat /etc/os-release | grep jessie; then

0 commit comments

Comments
 (0)