After another automatic software update of grub:

Extract from /var/log/apt/history.log

Start-Date: 2021-06-20  23:13:33
Commandline: aptdaemon role='role-commit-packages' sender=':1.135'
Upgrade: ..., grub-efi-amd64-signed:amd64 (1.167~18.04.3+2.04-1ubuntu44.1, 
1.167~18.04.5+2.04-1ubuntu44.1.2), ...
End-Date: 2021-06-20  23:16:23

The grub,cfg on the EFI System Partition at
/boot/efi/EFI/Ubuntu/grub.cfg was replaced with a new version.

I had edited the old version to include a necessary 'cryptomount' as the
first line

Previous version
cryptomount -u <partition uuid without hyphens>
search.fs_uuid <filesystem uuid of /boot filesystem, with hyphens> root 
lvmid/<lvmid of volume group contining /boot filesystem>
set prefix=($root)'/grub'
configfile $prefix/grub.cfg

This was replaced by a grub.cfg that lacked the first line
search.fs_uuid <filesystem uuid of /boot filesystem, with hyphens> root 
lvmid/<lvmid of volume group contining /boot filesystem>
set prefix=($root)'/grub'
configfile $prefix/grub.cfg

This obviously prevents successful booting.

This did not happen on previous upgrades before this bug was raised, so
a breaking change* has occurred to the scripts that both generate a
working grub.cfg and place it in the relevant place. Anyone who doesn't
know their way around the grub command line and understand the use of
cryptomount and lvm would have a very difficult time resolving the
problem.

The quick resolution is
1) At the grub> prompt enter 'cryptomount -a', and provide the necessary 
passphrase
2) Point linux at the correct place: linux (lvm/<lvm volume that contains the 
boot filesystem>>)/<path to vmlinux>
3) Point initrd at the correct place: initrd (lvm/<volume group that contains 
the boot filesystem)/<path to initrd>
4) boot
5) Edit the new grub.cfg or replace with the old one.


*The breaking change appears to be that the script no longer correctly handles 
the encrypted partition.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1927857

Title:
  Update to grub 2.04-1ubuntu44 breaks booting

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2-unsigned/+bug/1927857/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to