Fix menuentry state in bootloader.sls 5
This commit is contained in:
parent
496dbfa78d
commit
dbb821ebec
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ system_bootloader_os-release:
|
||||||
- key_ignore_case: False
|
- key_ignore_case: False
|
||||||
- append_if_not_found: True
|
- append_if_not_found: True
|
||||||
|
|
||||||
{% if salt['file.exists']('/etc/grub.d/10_linux') %}}
|
{% if salt['cmd.shell']('[ -f /etc/grub.d/10_linux ]') %}}
|
||||||
system_bootloader_remove_default_menuentry:
|
system_bootloader_remove_default_menuentry:
|
||||||
file.absent:
|
file.absent:
|
||||||
- name: /etc/grub.d/10_linux
|
- name: /etc/grub.d/10_linux
|
||||||
|
@ -65,7 +65,7 @@ system_bootloader_remove_default_menuentry:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
system_bootloader_menuentry:
|
system_bootloader_menuentry:
|
||||||
{% if not salt['file.exists']('/etc/grub.d/10_noveria') %}
|
{% if salt['cmd.shell']('[ ! -f /etc/grub.d/10_noveria ]') %}
|
||||||
file.managed:
|
file.managed:
|
||||||
- name: /etc/grub.d/10_noveria
|
- name: /etc/grub.d/10_noveria
|
||||||
- source: salt://{{ tpldir }}/files/bootloader_menuentry
|
- source: salt://{{ tpldir }}/files/bootloader_menuentry
|
||||||
|
|
Loading…
Reference in a new issue