Comment 11 for bug 8653

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 19 Oct 2004 00:10:39 +0200
From: Frank Lichtenheld <email address hidden>
To: <email address hidden>
Cc: Fabio Massimo Di Nitto <email address hidden>
Subject: Re: Bug#274208: patch

On Sun, Oct 10, 2004 at 05:51:18AM +0200, Fabio Massimo Di Nitto wrote:
> argh, you are right! I did the patch on an older version of mdadm, but
> the logic of the patch is exactly the same. You can adapt it easily to
> the new one.

Here is a modified patch that should deal both with the old
and the new file location. Should I upload this as a NMU or do
you plan an upload yourself?

diff -Naur mdadm-1.7.0.bak/debian/mdadm.config mdadm-1.7.0/debian/mdadm.config
--- mdadm-1.7.0.bak/debian/mdadm.config 2004-10-18 23:57:16.000000000 +0200
+++ mdadm-1.7.0/debian/mdadm.config 2004-10-19 00:07:16.000000000 +0200
@@ -6,6 +6,29 @@

 . /usr/share/debconf/confmodule

+DEBIANCONFIG=/etc/default/mdadm
+DEBIANCONFIG_OLD=/etc/mdadm/debian.conf
+
+if [ ! -e "$DEBIANCONFIG" ]; then
+ if [ -e "$DEBIANCONFIG_OLD" ]; then
+ DEBIANCONFIG="$DEBIANCONFIG_OLD"
+ fi
+fi
+
+# preseed debconf templates
+if [ -s $DEBIANCONFIG ] ; then
+ . $DEBIANCONFIG
+ if [ -n "$AUTOSTART" ]; then
+ db_set mdadm/autostart "$AUTOSTART"
+ fi
+ if [ -n "$START_DAEMON" ]; then
+ db_set mdadm/start_daemon "$START_DAEMON"
+ fi
+ if [ -n "$MAIL_TO" ]; then
+ db_set mdadm/mail_to "$MAIL_TO"
+ fi
+fi
+
 db_input medium mdadm/warning || true
 db_go

Gruesse,
--
Frank Lichtenheld <email address hidden>
www: http://www.djpig.de/