Adjust GRUB_DIST and add UEFI regeneration

Keeps the UEFI boot list cleaned and consistent
This commit is contained in:
2023-09-01 15:42:29 -04:00
parent 144f519e76
commit b987c4ea8f
3 changed files with 6 additions and 1 deletions

View File

@ -34,3 +34,6 @@
- name: update grub
command: update-grub
- name: regenerate uefi entries
shell: for entry in $(efibootmgr|awk '{print $1}'|grep -Eo '[0-9]+'); do efibootmgr -b ${entry} -B; done; grub-install /dev/$(lsblk -no pkname $(findmnt -n /boot/efi|awk '{print $2}'))