Skip to content

Commit

Permalink
Revert from hwe kernel to normal lts kernel (#329)
Browse files Browse the repository at this point in the history
* Revert from hwe kernel to normal lts kernel

We've seen OOM problems when running cgroups v1 with the 6.5 kernel line.

Resolves [#318]

The path for libsubcmd has changed between kernel versions, add the alternate path
8fecc29 originally changed this, now
we are adding both for compatibility.

Signed-off-by: Joseph Palermo <joseph.palermo@broadcom.com>
Co-authored-by: Long Nguyen <nguyenlo@vmware.com>
Co-authored-by: Brian Cunnie <brian.cunnie@broadcom.com>
  • Loading branch information
3 people authored and git committed Mar 12, 2024
1 parent 945c346 commit 0fc4e05
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
16 changes: 8 additions & 8 deletions bosh-stemcell/spec/assets/dpkg-list-ubuntu-jammy-kernel.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
linux-generic-hwe-22.04
linux-hwe-6.5-headers-6.5
linux-headers-6.5-generic
linux-headers-generic-hwe-22.04
linux-image-6.5-generic
linux-image-generic-hwe-22.04
linux-modules-6.5-generic
linux-modules-extra-6.5-generic
linux-generic
linux-headers-5.15
linux-headers-5.15-generic
linux-headers-generic
linux-image-5.15-generic
linux-image-generic
linux-modules-5.15-generic
linux-modules-extra-5.15-generic
2 changes: 1 addition & 1 deletion bosh-stemcell/spec/stemcells/fips_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
describe package('linux-image-fips') do
it { should be_installed }
end
describe package('linux-generic-hwe-22.04') do
describe package('linux-generic') do
it { should_not be_installed }
end
describe package('linux-image-5.19.0-109-generic') do
Expand Down
2 changes: 1 addition & 1 deletion bosh-stemcell/spec/stemcells/ubuntu_jammy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@
end

context 'installed by system_kernel', exclude_on_fips: true do
describe package('linux-generic-hwe-22.04') do
describe package('linux-generic') do
it { should be_installed }
end
end
Expand Down
2 changes: 1 addition & 1 deletion stemcell_builder/stages/static_libraries_config/apply.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ kernel_suffix="-generic"
if [[ "${DISTRIB_CODENAME}" == 'bionic' ]]; then
major_kernel_version="5.4"
elif [[ "${DISTRIB_CODENAME}" == 'jammy' ]]; then
major_kernel_version="6.5"
major_kernel_version="5.15"
else
major_kernel_version="4.15"
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,5 @@
/usr/lib/x86_64-linux-gnu/libz.a
/usr/src/linux-headers-__KERNEL_VERSION__/tools/bpf/resolve_btfids/libbpf/libbpf.a
/usr/src/linux-headers-__KERNEL_VERSION__/tools/bpf/resolve_btfids/libsubcmd/libsubcmd.a
/usr/src/linux-headers-__KERNEL_VERSION__/tools/objtool/libsubcmd.a
/usr/src/linux-headers-__KERNEL_VERSION__/tools/objtool/libsubcmd/libsubcmd.a
2 changes: 1 addition & 1 deletion stemcell_builder/stages/system_kernel/apply.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mkdir -p $chroot/tmp
if [[ "${DISTRIB_CODENAME}" == "bionic" ]]; then
pkg_mgr install linux-generic-hwe-18.04
elif [[ "${DISTRIB_CODENAME}" == "jammy" ]]; then
pkg_mgr install initramfs-tools linux-generic-hwe-22.04
pkg_mgr install initramfs-tools linux-generic
elif [[ "${DISTRIB_CODENAME}" == "xenial" ]]; then
pkg_mgr install linux-generic-hwe-16.04
else
Expand Down

0 comments on commit 0fc4e05

Please sign in to comment.