From 7dbbe468866342a4fab0ea9f8c62cf04945ae7bd Mon Sep 17 00:00:00 2001 From: Andrea Jemmett <1787979+acidghost@users.noreply.github.com> Date: Mon, 12 Aug 2024 11:12:25 +0200 Subject: [PATCH 1/2] fix(pkg/driverbuilder): add fedora updates-archive Signed-off-by: Andrea Jemmett <1787979+acidghost@users.noreply.github.com> --- pkg/driverbuilder/builder/fedora.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/driverbuilder/builder/fedora.go b/pkg/driverbuilder/builder/fedora.go index a8d6983c..606fbcbb 100644 --- a/pkg/driverbuilder/builder/fedora.go +++ b/pkg/driverbuilder/builder/fedora.go @@ -85,6 +85,13 @@ func (c *fedora) URLs(kr kernelrelease.KernelRelease) ([]string, error) { kr.Fullversion, kr.FullExtraversion, ), + fmt.Sprintf( // updates-archive + "https://fedoraproject-updates-archive.fedoraproject.org/fedora/%s/%s/kernel-devel-%s%s.rpm", + version, + kr.Architecture.ToNonDeb(), + kr.Fullversion, + kr.FullExtraversion, + ), } // return out all possible urls From ab1bec289e3427aee34669b42a19778f3edbf5be Mon Sep 17 00:00:00 2001 From: Andrea Jemmett <1787979+acidghost@users.noreply.github.com> Date: Mon, 12 Aug 2024 11:14:07 +0200 Subject: [PATCH 2/2] chore(pkg/driverbuilder): log warn if no download script was generated Signed-off-by: Andrea Jemmett <1787979+acidghost@users.noreply.github.com> --- pkg/driverbuilder/local.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/driverbuilder/local.go b/pkg/driverbuilder/local.go index c54bf949..8bf4d31d 100644 --- a/pkg/driverbuilder/local.go +++ b/pkg/driverbuilder/local.go @@ -103,6 +103,8 @@ func (lbp *LocalBuildProcessor) Start(b *builder.Build) error { } else { lbp.Logger.Warn("Failed to download headers.", lbp.Logger.Args("err", err)) } + } else { + lbp.Logger.Warn("Failed to generate script.", lbp.Logger.Args("err", err)) } } else { lbp.Logger.Info("Skipping kernel headers automatic download.", lbp.Logger.Args("err", err))