feat: set timeout on first tries to install
This commit is contained in:
parent
d27847c533
commit
c6acbef7f5
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user