Package: kexec-tools
Version: 20080324-2
Severity: normal

If I use dpkg-preconfigure to configure kexec not to handle reboots,
then install kexec-tools, then I expect /etc/default/kexec to contain
LOAD_KEXEC=false.  Instead, it contains LOAD_EXEC=true.

To reproduce:
1) dpkg -P kexec-tools                  # Clean slate
2) dpkg-preconfigure kexec-tools        # Use kexec to reboot? Say No.
3) DEBCONF_DEBUG=developer dpkg -i kexec-tools_20080324-2_$ARCH.deb
4) grep LOAD_KEXEC /etc/default/kexec   # Verify bug
5) dpkg -L kexec-tools | grep default   # See package contents

Output:
3) Selecting previously deselected package kexec-tools.
   (Reading database ... 50348 files and directories currently installed.)
   Unpacking kexec-tools (from .../kexec-tools_20080324-2_amd64.deb) ...
   Setting up kexec-tools (20080324-2) ...
   debconf (developer): frontend started
   debconf (developer): frontend running, package name is kexec-tools
   debconf (developer): starting /var/lib/dpkg/info/kexec-tools.config
   configure 
   debconf (developer): <-- SET kexec-tools/load_kexec true
   debconf (developer): --> 0 value set
   debconf (developer): <-- INPUT medium kexec-tools/load_kexec
   debconf (developer): --> 30 question skipped
   debconf (developer): <-- GO 
   debconf (developer): --> 0 ok
   debconf (developer): starting /var/lib/dpkg/info/kexec-tools.postinst
   configure 
   debconf (developer): <-- GET kexec-tools/load_kexec
   debconf (developer): --> 0 true
   debconf (developer): <-- STOP
   Processing triggers for man-db ...
4) LOAD_KEXEC=true
5) /etc/default
   /etc/default/kexec

Discussion:

I believe the problem is that the kexec-tools package contains
/etc/default/kexec as a packaged file.  This leads to the debconf
setting being clobbered when kexec-tools.config sources it immediately
after the files are unpacked.  Additionally, including
/etc/default/kexec is bad because it is redundant --
kexec-tools.postinst will generate it if it doesn't exist anyway.

-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (990, 'stable')

Versions of packages kexec-tools depends on:
ii  debconf [debconf-2.0]         1.5.24     Debian configuration management sy
ii  libc6                         2.7-18     GNU C Library: Shared libraries

kexec-tools recommends no packages.

kexec-tools suggests no packages.

-- debconf information:
  kexec-tools/load_kexec: false



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to