Browse Source

fix for issue #134 - compatibly issues in grub configuration with RedHat os_family systems

pull/135/head
Nick Metz 7 years ago
parent
commit
dbf0727472
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      linux/system/grub.sls

+ 14
- 0
linux/system/grub.sls View File

- mode: 755 - mode: 755
- makedirs: True - 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'] %} {%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %}
grub_update: grub_update:
cmd.wait: cmd.wait:
- name: update-grub - name: update-grub
{%- endif %} {%- endif %}

{%- endif %}

Loading…
Cancel
Save