1
0

refactor: avoid potential typos

This commit is contained in:
dump_stack() 2023-05-17 05:28:34 +00:00
parent f630fa6f49
commit ac2166b050
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -218,16 +218,23 @@ func ContainerCommands(km config.KernelMask) (commands []string) {
cmdf("apt-get update || apt-get update || apt-get update") cmdf("apt-get update || apt-get update || apt-get update")
packages := "wget build-essential libelf-dev git kmod linux-base " pkglist := []string{
packages += "initramfs-tools libssl-dev" "wget", "build-essential", "libelf-dev", "git",
"kmod", "linux-base", "initramfs-tools", "libssl-dev",
}
switch release { switch release {
case Wheezy: case Wheezy:
packages += "gcc-4.6 " pkglist = append(pkglist, "gcc-4.6")
} }
if release < 9 { if release < 9 {
packages += "module-init-tools " pkglist = append(pkglist, "module-init-tools")
}
var packages string
for _, pkg := range pkglist {
packages += fmt.Sprintf("%s ", pkg)
} }
cmdf("timeout 5m apt-get install -y %s "+ cmdf("timeout 5m apt-get install -y %s "+