martin f. krafft: Honour debconf pre-selection of mdadm/initrdstart

Martin F. Krafft madduck at alioth.debian.org
Sat Apr 25 17:45:09 UTC 2009


Module: mdadm
Branch: build
Commit: 073e556859edd4ae7f2db415a429dec496c85865
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=073e556859edd4ae7f2db415a429dec496c85865

Author: martin f. krafft <madduck at debian.org>
Date:   Sat Apr 25 17:25:00 2009 +0200

Honour debconf pre-selection of mdadm/initrdstart

Any pre-selection was overwritten with 'all'. Now it should work since we
initialise the value from debconf, which should return '' in case it was not
defined yet.

Debian bug: 516802

Signed-off-by: martin f. krafft <madduck at debian.org>

---

 debian/changelog    |    1 +
 debian/mdadm.config |    3 ++-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 3fdba1a..1d7f483 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ mdadm (2.6.9-1) unstable; urgency=low
     #522300). I chose postfix because that's the only one I could recommend,
     and since the alternative does not affect people who already have an MTA
     installed, or have a preference, it won't affect them.
+  * Honour debconf pre-selection of mdadm/initrdstart (closes: #516802).
 
  -- martin f. krafft <madduck at debian.org>  Thu, 12 Mar 2009 13:08:43 +0100
 
diff --git a/debian/mdadm.config b/debian/mdadm.config
index 39fffe2..a7e9b1f 100644
--- a/debian/mdadm.config
+++ b/debian/mdadm.config
@@ -27,7 +27,8 @@ if [ ! -e "$DEBIANCONFIG" ]; then
   fi
 fi
 
-INITRDSTART=''
+db_get mdadm/initrdstart || :
+INITRDSTART="$RET"
 
 if [ -s $DEBIANCONFIG ] ; then
   AUTOSTART=true




More information about the pkg-mdadm-commits mailing list