Adjust GRUB_DIST and add UEFI regeneration

Keeps the UEFI boot list cleaned and consistent
This commit is contained in:
Joshua Boniface 2022-11-01 02:23:46 -04:00
parent 0dbcf10d4a
commit c83145f9c5
3 changed files with 6 additions and 1 deletions

View File

@ -34,3 +34,6 @@
- name: update grub - name: update grub
command: 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}'))

View File

@ -260,6 +260,7 @@
- cpufrequtils - cpufrequtils
- ipmitool - ipmitool
- grub-efi - grub-efi
- efibootmgr
- plymouth - plymouth
- plymouth-themes - plymouth-themes
- linux-image-amd64 - linux-image-amd64
@ -400,6 +401,7 @@
dest: /etc/default/grub dest: /etc/default/grub
notify: notify:
- update grub - update grub
- regenerate uefi entries
# Plymouth theme # Plymouth theme
- name: install PVC Plymouth theme archive - name: install PVC Plymouth theme archive

View File

@ -2,7 +2,7 @@
# {{ ansible_managed }} # {{ ansible_managed }}
GRUB_DEFAULT=0 GRUB_DEFAULT=0
GRUB_TIMEOUT=5 GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Parallel Virtual Cluster (PVC) - Debian" GRUB_DISTRIBUTOR="PVC Parallel Virtual Cluster - Debian"
GRUB_CMDLINE_LINUX="{{ grub_cmdline }}" GRUB_CMDLINE_LINUX="{{ grub_cmdline }}"
GRUB_TERMINAL_INPUT="console serial" GRUB_TERMINAL_INPUT="console serial"
GRUB_TERMINAL_OUTPUT="gfxterm serial" GRUB_TERMINAL_OUTPUT="gfxterm serial"