From ac51c5087f7f40ad53930165340e481ae379dea3 Mon Sep 17 00:00:00 2001 From: Martin Sehnoutka Date: Thu, 20 May 2021 12:50:23 +0200 Subject: [PATCH] internal/distro: make it possible to use rhsm with fedora It should be possible to use rhsm with fedora repos as well. --- internal/distro/fedora33/distro.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/distro/fedora33/distro.go b/internal/distro/fedora33/distro.go index 09556f96b..2534cc36f 100644 --- a/internal/distro/fedora33/distro.go +++ b/internal/distro/fedora33/distro.go @@ -281,6 +281,11 @@ func sources(packages []rpmmd.PackageSpec) *osbuild.Sources { fileSource := osbuild.FileSource{ URL: pkg.RemoteLocation, } + if pkg.Secrets == "org.osbuild.rhsm" { + fileSource.Secrets = &osbuild.Secret{ + Name: "org.osbuild.rhsm", + } + } files.URLs[pkg.Checksum] = fileSource } return &osbuild.Sources{