1
0

Avoid errors in case when no kernels in container

This commit is contained in:
dump_stack() 2019-06-15 06:48:53 +00:00
parent 56cdad74b3
commit 75f5636d31
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -101,6 +101,7 @@ func generateBaseDockerImage(sk config.KernelMask) (err error) {
d += "RUN apt-get update\n" d += "RUN apt-get update\n"
d += "RUN apt-get install -y build-essential libelf-dev\n" d += "RUN apt-get install -y build-essential libelf-dev\n"
d += "RUN apt-get install -y wget git\n" d += "RUN apt-get install -y wget git\n"
d += "RUN mkdir /lib/modules\n"
default: default:
err = fmt.Errorf("%s not yet supported", sk.DistroType.String()) err = fmt.Errorf("%s not yet supported", sk.DistroType.String())
return return