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.
This commit is contained in:
Colin Walters 2025-08-13 11:16:06 +02:00
parent 2cfaaf7788
commit 7828d73645

View file

@ -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 = {}