Skip to content

Commit dba0660

Browse files
committed
OSDOCS-6898: add kernel override
1 parent 34f32dd commit dba0660

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

modules/coreos-layering-configuring.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,22 @@ When you configure a custom layered image, {product-title} no longer automatical
2424
You should use the same base {op-system} image that is installed on the rest of your cluster. Use the `oc adm release info --image-for rhel-coreos` command to obtain the base image being used in your cluster.
2525
====
2626
+
27-
For example, the following Containerfile creates a custom layered image from an {product-title} {product-version} image and a Hotfix package:
27+
For example, the following Containerfile creates a custom layered image from an {product-title} {product-version} image and overrides the kernel package with one from CentOS 9 Stream:
2828
+
2929
.Example Containerfile for a custom layer image
3030
[source,yaml]
3131
----
3232
# Using a 4.12.0 image
3333
FROM quay.io/openshift-release/ocp-release@sha256... <1>
3434
#Install hotfix rpm
35-
RUN rpm-ostree override replace https://example.com/hotfixes/haproxy-1.0.16-5.el8.src.rpm && \ <2>
35+
RUN rpm-ostree override cliwrap install-to-root / && \ <2>
36+
rpm-ostree override replace http://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/Packages/kernel-{,core-,modules-,modules-core-,modules-extra-}5.14.0-295.el9.x86_64.rpm && \ <3>
3637
rpm-ostree cleanup -m && \
3738
ostree container commit
3839
----
3940
<1> Specifies the {op-system} base image of your cluster.
40-
<2> Specifies the path to the Hotfix package.
41+
<2> Enables `cliwrap`. This is currently required to intercept some command invocations made from kernel scripts.
42+
<3> Replaces the kernel packages.
4143
+
4244
[NOTE]
4345
====

0 commit comments

Comments
 (0)