From c6acbef7f5d370380cc7eaaf4b826ca70a44fc31 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Tue, 16 May 2023 20:30:04 +0000 Subject: [PATCH] feat: set timeout on first tries to install --- distro/debian/debian.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distro/debian/debian.go b/distro/debian/debian.go index ef143f6..0fafe71 100644 --- a/distro/debian/debian.go +++ b/distro/debian/debian.go @@ -230,8 +230,8 @@ func ContainerCommands(km config.KernelMask) (commands []string) { packages += "module-init-tools " } - cmdf("apt-get install -y %s "+ - "|| apt-get install -y %s "+ + cmdf("timeout 5m apt-get install -y %s "+ + "|| timeout 10m apt-get install -y %s "+ "|| apt-get install -y %s", packages, packages, packages) cmdf("mkdir -p /lib/modules")