From 7828d736450248b9d74310cad0da06883d6d23f8 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 13 Aug 2025 11:16:06 +0200 Subject: [PATCH] base-imagectl: Ensure RHSM/subscription-manager is initialized This automates the workaround for https://issues.redhat.com/browse/RHEL-108989 This *should* eventually be fixed when we move to using `dnf` to do installs. --- bootc-base-imagectl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootc-base-imagectl b/bootc-base-imagectl index f5315ee..0eff4aa 100755 --- a/bootc-base-imagectl +++ b/bootc-base-imagectl @@ -25,6 +25,9 @@ def run_build_rootfs(args): else: raise Exception(f"manifest not found: {args.manifest}") + # A fix for https://issues.redhat.com/browse/RHEL-108989 + subprocess.check_call(['dnf', 'repolist'], stdout=subprocess.DEVNULL) + rpmostree_argv = ['rpm-ostree', 'compose', 'rootfs'] override_manifest = {}