update-grub does not run on kernel updates
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2-unsigned (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
A fresh Ubuntu 18.04.5 installation (eg. from ubuntu-
It seems the following pre/post hook scripts are missing:
- `/etc/kernel/
- `/etc/kernel/
This is due to a version mismatch of grub-efi-amd64 and grub2-common. In 2.04-1ubuntu44 of grub2 these scripts are installed as part of grub2-common package, while in 2.02-2ubuntu8.23 they are conffiles of the grub-efi-amd64 (or grub-pc, etc) package.
NOTE: A system that previously had an older version of grub-efi-amd64 or the grub-pc package installed will not encounter this issue since the scripts are still present as obsolete conffiles:
```
# dpkg --status grub-efi-amd64
<snip>
Conffiles:
/etc/kernel/
/etc/kernel/
```
---
```
$ lsb_release -rd
Description: Ubuntu 18.04.5 LTS
Release: 18.04
$ apt-cache policy grub-efi-amd64 grub2-common
grub-efi-amd64:
Installed: 2.04-1ubuntu44
Candidate: 2.04-1ubuntu44
Version table:
*** 2.04-1ubuntu44 500
500 http://
100 /var/lib/
2.
500 http://
2.02-2ubuntu8 500
500 http://
grub2-common:
Installed: 2.02-2ubuntu8.23
Candidate: 2.02-2ubuntu8.23
Version table:
*** 2.02-2ubuntu8.23 500
500 http://
100 /var/lib/
2.
500 http://
2.02-2ubuntu8 500
500 http://
```
---
Could also be the cause of #1922234 and #1927857