Bug#588331: grub-pc: fails to clean up /boot/grub/ in postrm during purge

Colin Watson cjwatson at debian.org
Wed Jul 7 13:04:54 UTC 2010


tags 588331 pending
thanks

On Wed, Jul 07, 2010 at 02:35:04PM +0200, Fabian Greffrath wrote:
> when grub-pc is completely removed via dpkg --purge grub-pc, it asks wether
> /boot/grub should also be cleaned via a debconf question. However, it fails to
> do so even if the answer to this question is "yes".
> 
> The reason is, that in grub-pc.postrm the debconf question brought up via
> db_input is grub-pc/postrm_purge_boot_grub, while the answer is queried via
> db_get from grub-pc/purge_boot_grub. However, this debconf template does not
> exist and thus the $RET value, which is checked before deleting the contents of
> /boot/grub, cannot be "true". The attached patch fixes this to read the answer
> from the right debconf template.

Thanks!  I've applied your patch to bzr.

-- 
Colin Watson                                       [cjwatson at debian.org]





More information about the Pkg-grub-devel mailing list