Przeglądaj źródła

add support for kernel modules

Change-Id: I6ba3d72307805341829fe0f6919e326f3698e833
tags/2017.4
Tomáš Kukrál 8 lat temu
rodzic
commit
ba35b21516
2 zmienionych plików z 22 dodań i 0 usunięć
  1. +12
    -0
      README.rst
  2. +10
    -0
      linux/system/kernel.sls

+ 12
- 0
README.rst Wyświetl plik

@@ -179,6 +179,18 @@ Install always up to date LTS kernel and headers from Ubuntu trusty:
lts: trusty
headers: true

Load kernel modules and add them to `/etc/modules`:

.. code-block:: yaml

linux:
system:
kernel:
modules:
- nf_conntrack
- tp_smapi
- 8021q

Install specific kernel version and ensure all other kernel packages are
not present. Also install extra modules and headers for this kernel:


+ 10
- 0
linux/system/kernel.sls Wyświetl plik

@@ -26,6 +26,16 @@ linux_kernel_old_absent:

{%- endif %}


{%- for module in system.kernel.get('modules', []) %}

linux_kernel_module_{{ module }}:
kmod.present:
- name: {{ module }}
- persist: true

{%- endfor %}

{%- for sysctl_name, sysctl_value in system.kernel.get('sysctl', {}).iteritems() %}

linux_kernel_{{ sysctl_name }}:

Ładowanie…
Anuluj
Zapisz