diff --git a/centos-stream-common.yaml b/centos-stream-common.yaml index 16c0981..bba53bb 100644 --- a/centos-stream-common.yaml +++ b/centos-stream-common.yaml @@ -2,6 +2,9 @@ repos: - baseos - appstream +packages: + - subscription-manager + # Configuration for bootc postprocess: # XFS is our default filesystem @@ -12,3 +15,11 @@ postprocess: [install] root-fs-type = "xfs" EOF + # 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 diff --git a/fedora-bootc b/fedora-bootc index 27ead1f..582297e 160000 --- a/fedora-bootc +++ b/fedora-bootc @@ -1 +1 @@ -Subproject commit 27ead1f82a993e2734cb8100f80eb67b7c9375bd +Subproject commit 582297efcc7840529f909e2220ad554fba798c93