Skip to content

Commit

Permalink
ubuntu24.04 ci pipeline fix
Browse files Browse the repository at this point in the history
Signed-off-by: shiva kumar <[email protected]>
  • Loading branch information
shivakunv committed Nov 13, 2024
1 parent c3e5556 commit c689bd9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/scripts/kernel-upgrade-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ if [ "${CURRENT_KERNEL}" != ${KERNEL_VERSION} ]; then
sudo rm -rf /boot/*.old

#install new kernel
# upgrade on ubuntu24.04 OS fails , update /etc/apt/sources.list
sudo echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy main universe" > /etc/apt/sources.list && \
sudo echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-updates main universe" >> /etc/apt/sources.list && \
sudo echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-security main universe" >> /etc/apt/sources.list && \
sudo usermod -o -u 0 -g 0 _apt

sudo apt-get install --allow-downgrades linux-image-${KERNEL_VERSION} linux-headers-${KERNEL_VERSION} linux-modules-${KERNEL_VERSION} -y || exit 1
if [ $? -ne 0 ]; then
echo "Kernel upgrade failed."
Expand Down

0 comments on commit c689bd9

Please sign in to comment.