A couple of observations:

1- Syntax error in zz-update-grub -
Notice the duplicated “then” on lines 16-17:

if [ -e /boot/grub/grub.cfg ]; then
then


2- The hook version logic flaw -
Relying on GRUB_KERNEL_HOOK_VERSION from zz-update-grub breaks when an old 
kernel is purged. In postrm.d, $1 is the removed version, not the one being 
configured.

3- The fix -

For anyone currently stranded with an unbootable entry from a failed
DKMS run:

1- Manually generate the missing initrd:

sudo update-initramfs -c -k <kernel-version>

2- Rebuild grub:

sudo update-grub

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

Title:
  55-initrd.install silently exits 0 when initrd missing causing
  undetectable kernel panic on NVMe systems

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to