grub-efi-amd64 from grub2-unsigned has lost kernel/postinst.d script
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Won't Fix
|
Undecided
|
Unassigned | ||
Xenial |
Won't Fix
|
Undecided
|
Unassigned | ||
Bionic |
Won't Fix
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Groovy |
Won't Fix
|
Undecided
|
Unassigned | ||
grub2-signed (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Confirmed
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Groovy |
Fix Released
|
Undecided
|
Unassigned | ||
grub2-unsigned (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Triaged
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Groovy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* /etc/kernel/
* /etc/kernel/
* This results in newly installed kernels not getting added to grub.cfg and thus upon reboot one does not boot into the new kernel.
* In later series these scripts moved to grub2-common, which is why they are absent in the backported grub-efi-* packages. They should be restored to these packages in the backport.
[Test Plan]
* install grub packages from -updates
* ensure that /etc/kernel/
* Install new grubs
* If testing on amd64 ensure that grub-efi-amd64 is installed, not grub-pc.
* Install a new kernel that was not installed before
* Observe that grub.cfg is regenerated and new kernel is present
* Remove an old kernel
* Observe that grub.cfg is regenerated and new kernel is removed from grub.cfg
* From bionic, verify that a dist-upgrade to focal works without conflicts.
[Where problems could occur]
* These are conffiles. Although nobody should modify them, care should be taken when moving conffiles around.
[Other Info]
* First reported by klebers
information type: | Public → Public Security |
Changed in grub2-signed (Ubuntu): | |
status: | New → Fix Released |
Changed in grub2-signed (Ubuntu Trusty): | |
status: | New → Triaged |
Changed in grub2-signed (Ubuntu Xenial): | |
status: | New → Triaged |
Changed in grub2-signed (Ubuntu Bionic): | |
status: | New → Triaged |
description: | updated |
description: | updated |
tags: | added: fr-1381 |
summary: |
- due to a new recommends grub-efi-arm64-signed is installed which does - not have postinst.d script + grub-efi-amd64 from grub2-unsigned has lost kernel/postinst.d script |
description: | updated |
description: | updated |
Changed in grub2 (Ubuntu Bionic): | |
status: | New → Invalid |
Changed in grub2 (Ubuntu): | |
status: | New → Invalid |
Changed in grub2 (Ubuntu): | |
status: | Invalid → Triaged |
Changed in grub2-signed (Ubuntu Hirsute): | |
status: | New → Invalid |
Changed in grub2-signed (Ubuntu): | |
status: | New → Invalid |
Changed in grub2-unsigned (Ubuntu Hirsute): | |
status: | New → Fix Released |
status: | Fix Released → Invalid |
Changed in grub2-unsigned (Ubuntu): | |
status: | Fix Released → Invalid |
description: | updated |
Changed in grub2 (Ubuntu): | |
status: | Triaged → In Progress |
Changed in grub2-signed (Ubuntu Groovy): | |
status: | New → Fix Committed |
description: | updated |
Changed in grub2 (Ubuntu Trusty): | |
status: | Invalid → Won't Fix |
Changed in grub2 (Ubuntu Xenial): | |
status: | Invalid → Won't Fix |
Changed in grub2 (Ubuntu Bionic): | |
status: | Invalid → Won't Fix |
Changed in grub2-signed (Ubuntu): | |
status: | Invalid → Fix Released |
Changed in grub2-unsigned (Ubuntu): | |
status: | Invalid → Fix Released |
Changed in grub2 (Ubuntu): | |
status: | In Progress → Fix Released |
The bug description here is all wrong. grub-efi- amd64-signed depends on grub-pc | grub-efi-amd64; you never have grub-efi- amd64-signed without one of these. The regression is because grub-efi-amd64 from grub2-unsigned has dropped the conffiles, expecting them to be provided by the grub2-common which it depends on; but we still have the old grub2-common from grub2 source which does not ship these conffiles.
We must either have grub-efi-amd64 reintroduce the conffiles in stable series, or add them to grub2-common.