diff --git a/contrib/template-override/ovs-dpdk.j2 b/contrib/template-override/ovs-dpdk.j2 index 7dea1b7fd2..42520022e3 100644 --- a/contrib/template-override/ovs-dpdk.j2 +++ b/contrib/template-override/ovs-dpdk.j2 @@ -46,6 +46,11 @@ {{ macros.install_packages(ovs_dpdk_packages | customizable("packages")) }} +{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %} +RUN mkdir -p /lib/modules/$(uname -r) \ + && ln -s /usr/src/kernels/$(uname -r) /lib/modules/$(uname -r)/build +{% endif %} + ADD plugins-archive / RUN ln -s /plugins/ovsdpdk-plugin-ovs-archive-*/ /ovs \ && ln -s /plugins/ovsdpdk-plugin-dpdk-archive-*/ /dpdk