I have one VM where grub2-install /dev/vda1
and /dev/vda claims, it can only install with --force
using blocklists - and that regularly breaks the boot after updates… is there a way to auto-run grub2-install after such updates similar to how it was with LILO back in the last century?
Or some easy way to make it work without blocklists?
fdisk -l
has
Device Start End Sectors Size Type
/dev/vda1 2048 20971486 20969439 10G Linux filesystem
and in there is an ext2/3/4.
# cat /etc/default/grub_installdevice
/dev/disk/by-path/pci-0000:00:04.0-part1
activate
generic_mbr
# ll /dev/disk/by-path/pci-0000:00:04.0-part1
lrwxrwxrwx 1 root root 10 Feb 26 17:15 /dev/disk/by-path/pci-0000:00:04.0-part1 -> ../../vda1
also looks good.