1
0

fix: no module-init-tools on debian 9

This commit is contained in:
dump_stack() 2023-05-14 21:17:21 +00:00
parent 032bba6ee5
commit 5778f39ac4
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -216,8 +216,12 @@ func ContainerCommands(km config.KernelMask) (commands []string) {
cmdf("apt-get update") cmdf("apt-get update")
cmdf("apt-get install -y wget build-essential libelf-dev git") cmdf("apt-get install -y wget build-essential libelf-dev git")
cmdf("apt-get install -y kmod module-init-tools linux-base") cmdf("apt-get install -y kmod linux-base")
cmdf("apt-get install -y initramfs-tools") cmdf("apt-get install -y initramfs-tools")
if release < 9 {
cmdf("apt-get install -y module-init-tools")
}
cmdf("mkdir -p /lib/modules") cmdf("mkdir -p /lib/modules")
return return