Browse Source

fix linux extra package for kernel

tags/2016.12
Jakub Pavlik 9 years ago
parent
commit
d5642b6cdc
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      linux/system/kernel.sls

+ 3
- 3
linux/system/kernel.sls View File

- linux-headers-{{ system.kernel.version }}-{{ system.kernel.type|default('generic') }} - linux-headers-{{ system.kernel.version }}-{{ system.kernel.type|default('generic') }}
{%- endif %} {%- endif %}
{%- if system.kernel.get('extra', False) %} {%- if system.kernel.get('extra', False) %}
- linux-extra-{{ system.kernel.version }}-{{ system.kernel.type|default('generic') }}
- linux-image-extra-{{ system.kernel.version }}-{{ system.kernel.type|default('generic') }}
{%- endif %} {%- endif %}
- refresh: true - refresh: true


# Not very Salt-ish.. :-( # Not very Salt-ish.. :-(
linux_kernel_old_absent: linux_kernel_old_absent:
cmd.wait: cmd.wait:
- name: "apt-get purge -y $(dpkg -l '*linux-image-[0-9]*' '*linux-headers-[0-9]*' '*linux-extra-[0-9]*' | grep -E '^ii' | awk '{print $2}' | grep -v '{{ system.kernel.version }}')"
- name: "apt-get purge -y $(dpkg -l '*linux-image-[0-9]*' '*linux-headers-[0-9]*' '*linux-image-extra-[0-9]*' | grep -E '^ii' | awk '{print $2}' | grep -v '{{ system.kernel.version }}')"
- watch: - watch:
- pkg: linux_kernel_package - pkg: linux_kernel_package


- linux-headers-{{ system.kernel.type|default('generic') }}{% if system.kernel.get('lts', False) %}-lts-{{ system.kernel.lts }}{% endif %} - linux-headers-{{ system.kernel.type|default('generic') }}{% if system.kernel.get('lts', False) %}-lts-{{ system.kernel.lts }}{% endif %}
{%- endif %} {%- endif %}
{%- if system.kernel.get('extra', False) %} {%- if system.kernel.get('extra', False) %}
- linux-extra-{{ system.kernel.type|default('generic') }}{% if system.kernel.get('lts', False) %}-lts-{{ system.kernel.lts }}{% endif %}
- linux-image-extra-{{ system.kernel.type|default('generic') }}{% if system.kernel.get('lts', False) %}-lts-{{ system.kernel.lts }}{% endif %}
{%- endif %} {%- endif %}
- refresh: true - refresh: true



Loading…
Cancel
Save