File tree 4 files changed +36
-0
lines changed
4 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,15 @@ parts:
95
95
# build idempotency, so we can build locally *and* in the CI.
96
96
# linux-tools and linux-cloud-tools are required for building BPF (for x86_64).
97
97
if [ "$(uname -m)" == "x86_64" ]; then
98
+ # In the GitHub action, we're using ubuntu 22.04 nodes, and LXD containers share its
99
+ # kernel. Due to the build-base set above, we don't have jammy's apt repositories set
100
+ # in the LXD container, and we need them to install the requirements below.
101
+ echo "deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse" | tee -a /etc/apt/sources.list
102
+ echo "deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse" | tee -a /etc/apt/sources.list
103
+ echo "deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list
104
+ echo "deb http://security.ubuntu.com/ubuntu jammy-security main restricted universe multiverse" | tee -a /etc/apt/sources.list
105
+ apt update
106
+
98
107
apt install -y linux-headers-$(uname -r) linux-tools-$(uname -r) linux-cloud-tools-$(uname -r)
99
108
else
100
109
apt install -y linux-headers-$(uname -r) linux-tools-$(uname -r) linux-cloud-tools
Original file line number Diff line number Diff line change @@ -95,6 +95,15 @@ parts:
95
95
# build idempotency, so we can build locally *and* in the CI.
96
96
# linux-tools and linux-cloud-tools are required for building BPF (for x86_64).
97
97
if [ "$(uname -m)" == "x86_64" ]; then
98
+ # In the GitHub action, we're using ubuntu 22.04 nodes, and LXD containers share its
99
+ # kernel. Due to the build-base set above, we don't have jammy's apt repositories set
100
+ # in the LXD container, and we need them to install the requirements below.
101
+ echo "deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse" | tee -a /etc/apt/sources.list
102
+ echo "deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse" | tee -a /etc/apt/sources.list
103
+ echo "deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list
104
+ echo "deb http://security.ubuntu.com/ubuntu jammy-security main restricted universe multiverse" | tee -a /etc/apt/sources.list
105
+ apt update
106
+
98
107
apt install -y linux-headers-$(uname -r) linux-tools-$(uname -r) linux-cloud-tools-$(uname -r)
99
108
else
100
109
apt install -y linux-headers-$(uname -r) linux-tools-$(uname -r) linux-cloud-tools
Original file line number Diff line number Diff line change @@ -92,6 +92,15 @@ parts:
92
92
# build idempotency, so we can build locally *and* in the CI.
93
93
# linux-tools and linux-cloud-tools are required for building BPF (for x86_64).
94
94
if [ "$(uname -m)" == "x86_64" ]; then
95
+ # In the GitHub action, we're using ubuntu 22.04 nodes, and LXD containers share its
96
+ # kernel. Due to the build-base set above, we don't have jammy's apt repositories set
97
+ # in the LXD container, and we need them to install the requirements below.
98
+ echo "deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse" | tee -a /etc/apt/sources.list
99
+ echo "deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse" | tee -a /etc/apt/sources.list
100
+ echo "deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list
101
+ echo "deb http://security.ubuntu.com/ubuntu jammy-security main restricted universe multiverse" | tee -a /etc/apt/sources.list
102
+ apt update
103
+
95
104
apt install -y linux-headers-$(uname -r) linux-tools-$(uname -r) linux-cloud-tools-$(uname -r)
96
105
else
97
106
apt install -y linux-headers-$(uname -r) linux-tools-$(uname -r) linux-cloud-tools
Original file line number Diff line number Diff line change @@ -92,6 +92,15 @@ parts:
92
92
# build idempotency, so we can build locally *and* in the CI.
93
93
# linux-tools and linux-cloud-tools are required for building BPF (for x86_64).
94
94
if [ "$(uname -m)" == "x86_64" ]; then
95
+ # In the GitHub action, we're using ubuntu 22.04 nodes, and LXD containers share its
96
+ # kernel. Due to the build-base set above, we don't have jammy's apt repositories set
97
+ # in the LXD container, and we need them to install the requirements below.
98
+ echo "deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse" | tee -a /etc/apt/sources.list
99
+ echo "deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse" | tee -a /etc/apt/sources.list
100
+ echo "deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse" | tee -a /etc/apt/sources.list
101
+ echo "deb http://security.ubuntu.com/ubuntu jammy-security main restricted universe multiverse" | tee -a /etc/apt/sources.list
102
+ apt update
103
+
95
104
apt install -y linux-headers-$(uname -r) linux-tools-$(uname -r) linux-cloud-tools-$(uname -r)
96
105
else
97
106
apt install -y linux-headers-$(uname -r) linux-tools-$(uname -r) linux-cloud-tools
You can’t perform that action at this time.
0 commit comments