grub2-common from release is good enough for one grub (it is same major series).
Hence installing onegrub doesn't need to upgrade grub2-common
# apt install grub-efi-amd64-signed
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
grub-efi-amd64 grub-efi-amd64-bin
Recommended packages:
efibootmgr secureboot-db
The following packages will be upgraded:
grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed
3 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
Need to get 1256 kB of archives.
After this operation, 351 kB of additional disk space will be used.
Do you want to continue? [Y/n]
grub-mkimage -O x86_64-efi -o foo -p /boot/grub --verbose; works
and if i choose to upgrade grub-common too, it also still works.
On focal:
# dpkg-query -W | grep grub amd64-signed 1.142.11+ 2.04-1ubuntu26. 9
grub-common 2.04-1ubuntu26.9
grub-efi-amd64 2.04-1ubuntu26.9
grub-efi-amd64-bin 2.04-1ubuntu26.9
grub-efi-
grub2-common 2.04-1ubuntu26.9
grub2-common from release is good enough for one grub (it is same major series).
Hence installing onegrub doesn't need to upgrade grub2-common
# apt install grub-efi- amd64-signed amd64-signed
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
grub-efi-amd64 grub-efi-amd64-bin
Recommended packages:
efibootmgr secureboot-db
The following packages will be upgraded:
grub-efi-amd64 grub-efi-amd64-bin grub-efi-
3 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
Need to get 1256 kB of archives.
After this operation, 351 kB of additional disk space will be used.
Do you want to continue? [Y/n]
grub-mkimage -O x86_64-efi -o foo -p /boot/grub --verbose; works
and if i choose to upgrade grub-common too, it also still works.