Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #722592

Bug#817083: debconf templates are not loaded in prerm

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#817083: debconf templates are not loaded in prerm
Date 2016-03-08 02:10 +0100
Message-ID <raejT-2dp-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


Package: debconf
Version: 1.5.58
Severity: important

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.

Ben.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 4.4.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Back to linux.debian.bugs.dist | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Bug#817083: debconf templates are not loaded in prerm Ben Hutchings <ben@decadent.org.uk> - 2016-03-08 02:10 +0100
  Bug#817083: [Debconf-devel] Bug#817083: debconf templates are not loaded in prerm Colin Watson <cjwatson@debian.org> - 2016-03-08 11:30 +0100
    Bug#817083: [Debconf-devel] Bug#817083: debconf templates are not loaded in prerm Ben Hutchings <ben@decadent.org.uk> - 2016-03-09 17:40 +0100

csiph-web