1
0

feat: set timeout on first tries to install

This commit is contained in:
dump_stack() 2023-05-16 20:30:04 +00:00
parent d27847c533
commit c6acbef7f5
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -230,8 +230,8 @@ func ContainerCommands(km config.KernelMask) (commands []string) {
packages += "module-init-tools " packages += "module-init-tools "
} }
cmdf("apt-get install -y %s "+ cmdf("timeout 5m apt-get install -y %s "+
"|| apt-get install -y %s "+ "|| timeout 10m apt-get install -y %s "+
"|| apt-get install -y %s", packages, packages, packages) "|| apt-get install -y %s", packages, packages, packages)
cmdf("mkdir -p /lib/modules") cmdf("mkdir -p /lib/modules")