[Debconf-devel] Bug#817083: Bug#817083: debconf templates are not loaded in prerm

Ben Hutchings ben at decadent.org.uk
Wed Mar 9 16:30:56 UTC 2016

Control: tag -1 patch

On Tue, 2016-03-08 at 10:17 +0000, Colin Watson wrote:
> On Tue, Mar 08, 2016 at 01:04:06AM +0000, Ben Hutchings wrote:
> > 
> > It appears that using debconf in a preinst or postinst script causes
> > debconf templates to be loaded automagically.  However, since version
> > 4.4.1-1~exp1 the linux-image-* packages only use debconf in the prerm
> > script.  In the case where the script asks a question, debconf does
> > not find the template and the prerm script fails.
> > 
> > The manual page for debconf-loadtemplate says it should never be used
> > from maintainer scripts, so I don't see how we're supposed to make
> > this work.
> Can you see if this patch works?  (If you're applying this directly to
> /usr/share/debconf/frontend, note that comments are stripped on
> installation, but it should be reasonably obvious what to do.)

Yes, this works for me.


Ben Hutchings
When in doubt, use brute force. - Ken Thompson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/debconf-devel/attachments/20160309/8066db7f/attachment.sig>

More information about the Debconf-devel mailing list