瀏覽代碼

Linux headers for building old BATMAN module are only needed on v14 gateways.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm 7 年之前
父節點
當前提交
c1fdd3efed
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      kernel/init.sls

+ 1 - 1
kernel/init.sls

@@ -15,7 +15,7 @@ linux-kernel:
 {#
  # Install kernel headers if we might need to compile a batman_adv module on this node.
  #}
-{% if 'batman' in node_config.get('roles', []) %}
+{% if 'batman' in node_config.get('roles', []) and 'v14' in grains['id'] %}
 linux-headers:
   pkg.installed:
     - name: linux-headers-{{ version }}