diff --git a/distro/debian/debian.go b/distro/debian/debian.go index 58e6e46..2c7adb1 100644 --- a/distro/debian/debian.go +++ b/distro/debian/debian.go @@ -216,8 +216,12 @@ func ContainerCommands(km config.KernelMask) (commands []string) { cmdf("apt-get update") 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") + if release < 9 { + cmdf("apt-get install -y module-init-tools") + } + cmdf("mkdir -p /lib/modules") return