浏览代码

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

fix Conflicting ID for duplicated include of linux.system.grub
pull/132/head
Filip Pytloun 7 年前
父节点
当前提交
cc54623dd5
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. +5
    -4
      linux/system/kernel.sls

+ 5
- 4
linux/system/kernel.sls 查看文件

@@ -3,11 +3,13 @@

{%- if system.kernel is defined %}

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

include:
- linux.system.grub

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

/etc/default/grub.d/90-isolcpu.cfg:
file.managed:
- contents: 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT isolcpus={{ system.kernel.isolcpu }}"'
@@ -22,9 +24,6 @@ include:

{%- 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 }}"'
@@ -37,6 +36,8 @@ include:
{%- endif %}
{%- endif %}

{%- endif %}

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

linux_kernel_package:

正在加载...
取消
保存