From c5c5ca9ec099e4f67489123d2a865e5b133db27c Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 24 Jan 2024 20:04:15 -0500 Subject: [PATCH] rpm-packaging: Add rhsm links This pulls in the code from https://github.com/openshift/os/pull/876/commits/dd35dd0e102aeed90df14f05c8ae9da4c8c5962a for the same reason. --- tier-1/rpm-packaging.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tier-1/rpm-packaging.yaml b/tier-1/rpm-packaging.yaml index 72ba24b..89e7a8a 100644 --- a/tier-1/rpm-packaging.yaml +++ b/tier-1/rpm-packaging.yaml @@ -4,3 +4,13 @@ packages: - dnf # To ensure we can enable client certs to access RHEL content - subscription-manager + +postprocess: + # These enable librhsm which enables host subscriptions to work in containers + # https://github.com/rpm-software-management/librhsm/blob/fcd972cbe7c8a3907ba9f091cd082b1090231492/rhsm/rhsm-context.c#L30 + # https://github.com/openshift/os/pull/876/commits/dd35dd0e102aeed90df14f05c8ae9da4c8c5962a + - | + #!/usr/bin/bash + set -xeuo pipefail + ln -sr /run/secrets/etc-pki-entitlement /etc/pki/entitlement-host + ln -sr /run/secrets/rhsm /etc/rhsm-host