浏览代码

Merge pull request #135 from FHE3/grub-compatibly-redhat

fix for issue #134 - compatibly issues in grub configuration with Red…
pull/136/head
Filip Pytloun 7 年前
父节点
当前提交
bded90b59c
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. +14
    -0
      linux/system/grub.sls

+ 14
- 0
linux/system/grub.sls 查看文件

@@ -6,8 +6,22 @@ grub_d_directory:
- mode: 755
- makedirs: True

{%- if grains['os_family'] == 'RedHat' %}
/etc/default/grub:
file.append:
- text:
- for i in $(ls /etc/default/grub.d);do source /etc/default/grub.d/$i ;done

grub_update:
cmd.wait:
- name: grub2-mkconfig -o /boot/grub2/grub.cfg

{%- else %}

{%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %}
grub_update:
cmd.wait:
- name: update-grub
{%- endif %}

{%- endif %}

正在加载...
取消
保存