Uploaded image for project: 'CoreOS OCP'
  1. CoreOS OCP
  2. COS-2787

[coreos/rpm-ostree] Auto-wrap `kernel-install` if layering kernel packages

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Upstream
    • False
    • Hide

      None

      Show
      None
    • False
    • 0

      [2283408464] Upstream Reporter: Jonathan Lebon
      Upstream issue status: Closed
      Upstream description:

      Basically right now, we have `rpm-ostree cliwrap install-to-root /` in the hot path for anyone who wants to swap kernels during derivation. The problem is that the cliwrap stuff lingers into the image, which introduces an unwanted diff wrt other nodes and [causes real issues](https://issues.redhat.com/browse/OCPBUGS-30149).

      Until we have https://github.com/coreos/rpm-ostree/issues/4726, let's just in the layering code detect if:

      • we're in the container flow, and
      • there's a kernel package in the transaction, then
      • wrap `kernel-install` before running `dnf_context_run()` and unwrap it afterwards

      Then, we should be able to drop the cargo-culted `rpm-ostree cliwrap install-to-root` everywhere.

              Unassigned Unassigned
              upstream-sync Upstream Sync
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: