From a64398b2ca1cdaee291550face0d1ce5f8ea52f6 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 28 Nov 2023 23:19:44 +0100 Subject: [PATCH] mkosi: pin CentOS8 kernel to working version Newer kernels are affected by a regression that causes a kernel panic on boot when using cgroupv2, so pin them for now. Can be reverted once that problem is fixed. --- mkosi.images/system/mkosi.conf.d/10-centos-fedora.conf | 1 - mkosi.images/system/mkosi.conf.d/10-centos/mkosi.conf | 4 ---- .../mkosi.conf.d/10-centos/mkosi.conf.d/10-centos8.conf | 9 +++++++++ .../mkosi.conf.d/10-centos/mkosi.conf.d/10-centos9.conf | 9 +++++++++ mkosi.images/system/mkosi.conf.d/10-fedora.conf | 1 + 5 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 mkosi.images/system/mkosi.conf.d/10-centos/mkosi.conf.d/10-centos8.conf create mode 100644 mkosi.images/system/mkosi.conf.d/10-centos/mkosi.conf.d/10-centos9.conf diff --git a/mkosi.images/system/mkosi.conf.d/10-centos-fedora.conf b/mkosi.images/system/mkosi.conf.d/10-centos-fedora.conf index c007be2f84f..7b69969da4c 100644 --- a/mkosi.images/system/mkosi.conf.d/10-centos-fedora.conf +++ b/mkosi.images/system/mkosi.conf.d/10-centos-fedora.conf @@ -13,7 +13,6 @@ Packages= glib2 iproute iproute-tc - kernel-core libcap-ng-utils netcat openssh-server diff --git a/mkosi.images/system/mkosi.conf.d/10-centos/mkosi.conf b/mkosi.images/system/mkosi.conf.d/10-centos/mkosi.conf index 146e03a8955..af4862d4b14 100644 --- a/mkosi.images/system/mkosi.conf.d/10-centos/mkosi.conf +++ b/mkosi.images/system/mkosi.conf.d/10-centos/mkosi.conf @@ -2,7 +2,3 @@ [Match] Distribution=centos - -[Content] -Packages= - kernel-modules # For squashfs support diff --git a/mkosi.images/system/mkosi.conf.d/10-centos/mkosi.conf.d/10-centos8.conf b/mkosi.images/system/mkosi.conf.d/10-centos/mkosi.conf.d/10-centos8.conf new file mode 100644 index 00000000000..30643e72b36 --- /dev/null +++ b/mkosi.images/system/mkosi.conf.d/10-centos/mkosi.conf.d/10-centos8.conf @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + +[Match] +Release=8 + +[Content] +Packages= + kernel-core-4.18.0-521.el8 + kernel-modules-4.18.0-521.el8 # For squashfs support diff --git a/mkosi.images/system/mkosi.conf.d/10-centos/mkosi.conf.d/10-centos9.conf b/mkosi.images/system/mkosi.conf.d/10-centos/mkosi.conf.d/10-centos9.conf new file mode 100644 index 00000000000..a21739f2300 --- /dev/null +++ b/mkosi.images/system/mkosi.conf.d/10-centos/mkosi.conf.d/10-centos9.conf @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + +[Match] +Release=9 + +[Content] +Packages= + kernel-core + kernel-modules diff --git a/mkosi.images/system/mkosi.conf.d/10-fedora.conf b/mkosi.images/system/mkosi.conf.d/10-fedora.conf index 42d0093a89c..281e9464f62 100644 --- a/mkosi.images/system/mkosi.conf.d/10-fedora.conf +++ b/mkosi.images/system/mkosi.conf.d/10-fedora.conf @@ -8,3 +8,4 @@ Packages= btrfs-progs compsize f2fs-tools + kernel-core -- 2.47.3