Sfoglia il codice sorgente

Add elevator parameter to GRUB_CMDLINE_LINUX_DEFAULT

pull/129/head
Simon Schneider 7 anni fa
parent
commit
0225666deb
1 ha cambiato i file con 17 aggiunte e 0 eliminazioni
  1. +17
    -0
      linux/system/kernel.sls

+ 17
- 0
linux/system/kernel.sls Vedi File

@@ -20,6 +20,23 @@ include:
{%- endif %}
{%- endif %}

{%- if system.kernel.elevator is defined %}

include:
- linux.system.grub

/etc/default/grub.d/91-elevator.cfg:
file.managed:
- contents: 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT elevator={{ system.kernel.elevator }}"'
- require:
- file: grub_d_directory
{%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %}
- watch_in:
- cmd: grub_update

{%- endif %}
{%- endif %}

{%- if system.kernel.version is defined %}

linux_kernel_package:

Loading…
Annulla
Salva