Package: sicherboot,dracut
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts
Control: found -1 0.1.5
Control: found -1 047+31-2

Hi,

during a test with piuparts I noticed your package failed the piuparts
upgrade test because dpkg detected a conffile as being modified and then
prompted the user for an action. As there is no user input, this fails.
But this is not the real problem, the real problem is that this prompt
shows up in the first place, as there was nobody modifying this conffile
at all, the package has just been installed and upgraded...

This is a violation of policy 10.7.3, see
https://www.debian.org/doc/debian-policy/#behavior,
which says "[These scripts handling conffiles] must not ask unnecessary
questions (particularly during upgrades), and must otherwise be good
citizens."

https://wiki.debian.org/DpkgConffileHandling should help with figuring
out how to do this properly.

In https://lists.debian.org/debian-devel/2009/08/msg00675.html and
followups it has been agreed that these bugs are to be filed with
severity serious.

>From the attached log (scroll to the bottom...):

[...]
  Setting up sicherboot (0.1.5) ...
[...]
  Setting up dracut (047+31-2) ...
  
  Configuration file '/etc/kernel/postinst.d/dracut.SecureBoot'
   ==> Deleted (by you or by a script) since installation.
   ==> Package distributor has shipped an updated version.
     What would you like to do about it ?  Your options are:
      Y or I  : install the package maintainer's version
      N or O  : keep your currently-installed version
        D     : show the differences between the versions
        Z     : start a shell to examine the situation
   The default action is to keep your current version.
  *** dracut.SecureBoot (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing 
package dracut (--configure):
   end of file on stdin at conffile prompt
  Processing triggers for libc-bin (2.27-3) ...
  Errors were encountered while processing:
   dracut

and the other way around:

[...]
  Setting up dracut (047+31-2) ...
[...]
  Setting up sicherboot (0.1.5) ...
  
  Configuration file '/etc/kernel/postinst.d/dracut'
   ==> Deleted (by you or by a script) since installation.
   ==> Package distributor has shipped an updated version.
     What would you like to do about it ?  Your options are:
      Y or I  : install the package maintainer's version
      N or O  : keep your currently-installed version
        D     : show the differences between the versions
        Z     : start a shell to examine the situation
   The default action is to keep your current version.
  *** dracut (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package 
sicherboot (--configure):
   end of file on stdin at conffile prompt
  Processing triggers for libc-bin (2.27-3) ...
  Errors were encountered while processing:
   sicherboot


I haven't checked the packages, but this looks a little bit
like you are trying to dpkg-divert a conffile, which does not
work as you intended ... there are old dpkg bugs about it,
e.g. https://bugs.debian.org/363524 so don't do it.


cheers,

Andreas

Attachment: dracut=047+31-2_sicherboot=0.1.5.log.gz
Description: application/gzip

Attachment: sicherboot=0.1.5_dracut=047+31-2.log.gz
Description: application/gzip

Reply via email to