Removal of kernel images broken if grub is removed but not purged
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: grub
I installed grub2, necessarily removing grub, however, I did not yet purge grub, so its config files remain. One of those files is called in the prerm script of kernel image packages, but it fails when grub is not actually installed, causing the removal of kernel images to fail:
run-parts: executing /etc/kernel/
/etc/kernel/
run-parts: /etc/kernel/
Failed to process /etc/kernel/prerm.d at /var/lib/
dpkg: error processing linux-image-
subprocess pre-removal script returned error exit status 2
Packages must gracefully handle the situation of them being removed but their config files remaining.
kosh@isis:~$ lsb_release -rd
Description: Ubuntu jaunty (development branch)
Release: 9.04
kosh@isis:~$ dpkg -l grub
[…]
rc grub 0.97-29ubuntu46 GRand Unified Bootloader