From dbb821ebec5b0da6e5380c16dccfd2997f057220 Mon Sep 17 00:00:00 2001 From: LinuxSquare <7436714-OfficialLinuxSquare@users.noreply.gitlab.com> Date: Sun, 16 Jul 2023 21:21:41 +0200 Subject: [PATCH] Fix menuentry state in bootloader.sls 5 --- system/bootloader.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/bootloader.sls b/system/bootloader.sls index b394ac0..bce6510 100644 --- a/system/bootloader.sls +++ b/system/bootloader.sls @@ -55,7 +55,7 @@ system_bootloader_os-release: - key_ignore_case: False - 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: file.absent: - name: /etc/grub.d/10_linux @@ -65,7 +65,7 @@ system_bootloader_remove_default_menuentry: {% endif %} 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: - name: /etc/grub.d/10_noveria - source: salt://{{ tpldir }}/files/bootloader_menuentry