mkosi: pin CentOS8 kernel to working version
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 28 Nov 2023 22:19:44 +0000 (23:19 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 28 Nov 2023 22:19:44 +0000 (23:19 +0100)
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
mkosi.images/system/mkosi.conf.d/10-centos/mkosi.conf
mkosi.images/system/mkosi.conf.d/10-centos/mkosi.conf.d/10-centos8.conf [new file with mode: 0644]
mkosi.images/system/mkosi.conf.d/10-centos/mkosi.conf.d/10-centos9.conf [new file with mode: 0644]
mkosi.images/system/mkosi.conf.d/10-fedora.conf

index c007be2..7b69969 100644 (file)
@@ -13,7 +13,6 @@ Packages=
         glib2
         iproute
         iproute-tc
-        kernel-core
         libcap-ng-utils
         netcat
         openssh-server
index 146e03a..af4862d 100644 (file)
@@ -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 (file)
index 0000000..30643e7
--- /dev/null
@@ -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 (file)
index 0000000..a21739f
--- /dev/null
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+Release=9
+
+[Content]
+Packages=
+        kernel-core
+        kernel-modules
index 42d0093..281e946 100644 (file)
@@ -8,3 +8,4 @@ Packages=
         btrfs-progs
         compsize
         f2fs-tools
+        kernel-core