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

Commit 9d3f708

Browse files
committed
Install libseccomp2 package based on debian version.
Signed-off-by: Lantao Liu <[email protected]>
1 parent 5766ef2 commit 9d3f708

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

test/build-utils.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,19 @@ fi
2929
gcloud auth activate-service-account --key-file "${GOOGLE_APPLICATION_CREDENTIALS}" --project="${PROJECT}"
3030

3131
# Install dependent libraries.
32-
sh -c "echo 'deb http://ftp.debian.org/debian jessie-backports main' > /etc/apt/sources.list.d/backports.list"
3332
apt-get update
3433
apt-get install -y btrfs-tools
35-
apt-get install -y libseccomp2/jessie-backports
36-
apt-get install -y libseccomp-dev/jessie-backports
34+
35+
# Kubernetes test infra uses jessie and stretch.
36+
if cat /etc/os-release | grep jessie; then
37+
sh -c "echo 'deb http://ftp.debian.org/debian jessie-backports main' > /etc/apt/sources.list.d/backports.list"
38+
apt-get update
39+
apt-get install -y libseccomp2/jessie-backports
40+
apt-get install -y libseccomp-dev/jessie-backports
41+
else
42+
apt-get install -y libseccomp2
43+
apt-get install -y libseccomp-dev
44+
fi
3745

3846
# PULL_REFS is from prow.
3947
if [ ! -z "${PULL_REFS:-""}" ]; then

0 commit comments

Comments
 (0)