瀏覽代碼

Merge pull request #129 from FHE3/linux-system-elevator

Add elevator parameter to GRUB_CMDLINE_LINUX_DEFAULT
pull/132/head
Filip Pytloun 7 年之前
父節點
當前提交
318dfee6ad
No account linked to committer's email address
共有 2 個文件被更改,包括 18 次插入0 次删除
  1. +17
    -0
      linux/system/kernel.sls
  2. +1
    -0
      tests/pillar/system.sls

+ 17
- 0
linux/system/kernel.sls 查看文件

@@ -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:

+ 1
- 0
tests/pillar/system.sls 查看文件

@@ -18,6 +18,7 @@ linux:
default: "linux.ci.local$"
kernel:
isolcpu: 1,2,3,4
elevator: deadline
sysfs:
scheduler:
block/sda/queue/scheduler: deadline

Loading…
取消
儲存