Bug#516802: Does not use debconf-preseeded value for mdadm/initrdstart

martin f krafft madduck at debian.org
Tue Feb 24 19:30:30 UTC 2009


tags 516802 moreinfo
thanks

also sprach Daniel Richard G. <skunk at iSKUNK.ORG> [2009.02.23.1944 +0100]:
> I set a value of "none" for mdadm/initrdstart using debconf-set-selections, 
> prior to installing mdadm. (I also mark the question as "seen false", so 
> that the value can be changed if needed at package-install time; the intent 
> is simply to change the default.)

I forget debconf details, but does this work for other settings for
you? I.e. are you sure that "seen false" doesn't cause it to ignore
the preseeded value and use the default anyway?

> When mdadm is installed, and the debconf question comes up, the
> default value shown is the package default of "all", and not the
> preseeded value of "none". It should, of course, be the latter.

From the code, I do not understand how this is even possible:

    db_get mdadm/initrdstart
    INITRDSTART="${RET:-all}"

This means that INITRDSTART only gets initialised to 'all' if $RET
was not set. Either $RET is 'all', in which case debconf is at
fault, or there are gnomes in your PC.

Do you think you could try to reproduce this on a new machine in the following
order:

  1. use debconf-set-selections as you would
  2. use dpkg --unpack mdadm_*.deb to merely unpack the package
  3. change set -eu at the top of /var/lib/dpkg/info/mdadm.postinst to set -euvx
  4. insert echo $RET between the two lines of code shown above
  5. run dpkg --configure mdadm
  6 paste the output to me?

-- 
 .''`.   martin f. krafft <madduck at d.o>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
Url : http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20090224/3c22410f/attachment.pgp 


More information about the pkg-mdadm-devel mailing list