Comment 13 for bug 8653

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

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

Frank Lichtenheld wrote:
> 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.

It looks sane to me.

> Should I upload this as a NMU or do
> you plan an upload yourself?

I was hoping in the maintianer but please go ahead. I am in short of time :(

Fabio

>
> 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,

--
<user> fajita: step one
<fajita> Whatever the problem, step one is always to look in the error log.
<user> fajita: step two
<fajita> When in danger or in doubt, step two is to scream and shout.