Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-30895

OpenShift 4.12 docs for Applying a RHCOS custom layered image containing non-working Containerfile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • 4.12
    • Documentation / RHCOS
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • 1
    • Moderate
    • No
    • None
    • None
    • None
    • OSDOCS Sprint 267, OSDOCS Sprint 268
    • 2
    • In Progress
    • Release Note Not Required
    • None
    • None
    • None
    • None
    • None

      The docs for Applying a RHCOS custom layered Image in https://docs.openshift.com/container-platform/4.12/post_installation_configuration/coreos-layering.html#coreos-layering-configuring_coreos-layering is not working. The codeblock "Example Containerfile for a custom layer image" is currently containing the code below and there is a && missing after "rpm-ostree cliwrap install-to-root /".

      Using a 4.12.0 image
      FROM quay.io/openshift-release/ocp-release@sha256... 
      #Install hotfix rpm
      RUN rpm-ostree cliwrap install-to-root / \ 
          rpm-ostree override replace http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/kernel-{,core-,modules-,modules-extra-}4.18.0-483.el8.x86_64.rpm && \ 
          rpm-ostree cleanup -m && \
          ostree container commit
      

      This should be replaced with:

      Using a 4.12.0 image
      FROM quay.io/openshift-release/ocp-release@sha256... 
      #Install hotfix rpm
      RUN rpm-ostree cliwrap install-to-root / && \ 
          rpm-ostree override replace http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/kernel-{,core-,modules-,modules-extra-}4.18.0-483.el8.x86_64.rpm && \ 
          rpm-ostree cleanup -m && \
          ostree container commit
      

              kowen@redhat.com Kevin Owen
              rhn-support-anowak Andreas Nowak
              None
              None
              Michael Nguyen Michael Nguyen
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: