1
0

fix: deb packages install command

This commit is contained in:
dump_stack() 2023-05-16 19:20:58 +00:00
parent e87add8e44
commit 18426775b9
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -216,7 +216,7 @@ func ContainerCommands(km config.KernelMask) (commands []string) {
"/etc/apt/sources.list")
}
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 "
packages += "initramfs-tools "
@ -230,9 +230,9 @@ func ContainerCommands(km config.KernelMask) (commands []string) {
packages += "module-init-tools "
}
cmdf("{ apt-get install -y %s "+
cmdf("apt-get install -y %s "+
"|| 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")