From 34f3692d01305c6713c837264582c9edac192b90 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Fri, 24 Mar 2023 04:15:08 +0000 Subject: [PATCH] Fix timeout --- kernel.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel.go b/kernel.go index 109caaa..a3f21e3 100644 --- a/kernel.go +++ b/kernel.go @@ -145,7 +145,8 @@ func matchDebianHeadersPkg(container, mask string, generic bool) ( cmd := "apt-cache search linux-headers | cut -d ' ' -f 1" - c, err := NewContainer(container, time.Minute) + // FIXME timeout should be in global out-of-tree config + c, err := NewContainer(container, time.Hour) if err != nil { return } @@ -182,7 +183,8 @@ func matchCentOSDevelPkg(container, mask string, generic bool) ( cmd := "yum search kernel-devel --showduplicates | " + "grep '^kernel-devel' | cut -d ' ' -f 1" - c, err := NewContainer(container, time.Minute) + // FIXME timeout should be in global out-of-tree config + c, err := NewContainer(container, time.Hour) if err != nil { return }