Fix containerd build, use libbtrfs-dev
when available.
Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
parent
815f3e727d
commit
8bfff7dbd2
@ -30,7 +30,11 @@ gcloud auth activate-service-account --key-file "${GOOGLE_APPLICATION_CREDENTIAL
|
|||||||
|
|
||||||
# Install dependent libraries.
|
# Install dependent libraries.
|
||||||
apt-get update
|
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.
|
# Kubernetes test infra uses jessie and stretch.
|
||||||
if cat /etc/os-release | grep jessie; then
|
if cat /etc/os-release | grep jessie; then
|
||||||
|
Loading…
Reference in New Issue
Block a user