Fix menuentry state in bootloader.sls 3

This commit is contained in:
LinuxSquare 2023-07-16 20:51:51 +02:00
parent 5e0a60b670
commit e134269eb4

View file

@ -69,10 +69,14 @@ system_bootloader_menuentry:
- require: - require:
- system_base_pkgs - system_base_pkgs
- system_bootloader_pkgs - system_bootloader_pkgs
system_bootloader_menuentry_clean:
file.replace: file.replace:
- name: /etc/grub.d/40_custom - name: /etc/grub.d/40_custom
- pattern: {{ "# the 'exec tail' line above." | regex_escape }} - pattern: {{ "# the 'exec tail' line above." | regex_escape }}
- repl: null - repl: null
- require:
- system_bootloader_menuentry
system_bootloader_config: system_bootloader_config:
cmd.run: cmd.run:
@ -81,7 +85,7 @@ system_bootloader_config:
- system_bootloader_pkgs - system_bootloader_pkgs
- system_bootloader_install - system_bootloader_install
- system_bootloader_grub_dir - system_bootloader_grub_dir
- system_bootloader_menuentry - system_bootloader_menuentry_clean
system_bootloader_remove_default_menuentry: system_bootloader_remove_default_menuentry:
file.blockreplace: file.blockreplace: