Add grub-dir in bootloader

This commit is contained in:
LinuxSquare 2023-07-16 17:38:41 +02:00
parent eecb262bb0
commit 0c7bc4b9aa

View file

@ -16,12 +16,24 @@ system_bootloader_install:
- require:
- system_bootloader_pkgs
system_bootloader_grub_dir:
file.directory:
- name: /efi/grub
- makedirs: true
- user: root
- group: root
- mode: '0755'
- require:
- system_bootloader_pkgs
- system_bootloader_install
system_bootloader_config:
cmd.run:
- name: 'grub-mkconfig -o /efi/grub/grub.cfg'
- require:
- system_bootloader_pkgs
- system_bootloader_install
- system_bootloader_grub_dir
system_bootloader_mkinitfs_conf:
file.keyvalue: