Your message dated Sat, 25 Aug 2012 19:02:40 +0000
with message-id <[email protected]>
and subject line Bug#678971: fixed in mdadm 3.2.5-2
has caused the Debian Bug report #678971,
regarding mdadm: use just dh_installinit
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
678971: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678971
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mdadm
Version: 3.2.5-1
Severity: wishlist

Please consider applying the following patch.

Instead of using hand-crafted snippet to prevent restarting mdadm, use
debhelper's snippet.

Regards,

Dmitrijs

>From 5876c26bec473a625cbb93cda5a9dedef6153064 Mon Sep 17 00:00:00 2001
From: Dmitrijs Ledkovs <[email protected]>
Date: Fri, 15 Jun 2012 14:51:47 +0100
Subject: [PATCH 1/2] Use dh_installinit with --no-restart-on-upgrade, which
 will start arrays, but will not stop them during
 upgrade.

---
 debian/changelog      |    4 ++++
 debian/mdadm.postinst |   11 -----------
 debian/rules          |    2 +-
 3 files changed, 5 insertions(+), 12 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2a2faa3..102790b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,10 @@ mdadm (3.2.5-2) UNRELEASED; urgency=low
   [ Michael Tokarev ]
   * fix spelling mistakes in previous changelog entry
 
+  [ Dmitrijs Ledkovs ]
+  * Use dh_installinit with --no-restart-on-upgrade, which will start
+    arrays, but will not stop them during upgrade.
+
  -- Michael Tokarev <[email protected]>  Fri, 22 Jun 2012 11:58:11 +0400
 
 mdadm (3.2.5-1) unstable; urgency=low
diff --git a/debian/mdadm.postinst b/debian/mdadm.postinst
index 56d3cb3..8dc90b8 100644
--- a/debian/mdadm.postinst
+++ b/debian/mdadm.postinst
@@ -181,14 +181,3 @@ fi
 # See #369953
 set +u
 #DEBHELPER#
-set -u
-
-# do start mdadm-raid, but don't use dh_installinit to do so, to prevent
-# stopping raids on remove/upgrade.
-if [ -x /etc/init.d/mdadm-raid ]; then
-  if [ -x "$(command -v invoke-rc.d)" ]; then
-    invoke-rc.d mdadm-raid start || exit $?
-  else
-    /etc/init.d/mdadm-raid start || exit $?
-  fi
-fi
diff --git a/debian/rules b/debian/rules
index a07debe..b6f99bb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -91,7 +91,7 @@ binary-arch: build install
 	dh_installdebconf
 	dh_installdocs
 	dh_installexamples debian/mdadd.sh
-	dh_installinit --init-script=mdadm-raid --no-start -- start 25 S . start 60 0 6 .
+	dh_installinit --init-script=mdadm-raid --no-restart-on-upgrade -- start 25 S . start 60 0 6 .
 	dh_installinit -- defaults 25
 	dh_installman
 	dh_installcron
-- 
1.7.10.4


--- End Message ---
--- Begin Message ---
Source: mdadm
Source-Version: 3.2.5-2

We believe that the bug you reported is fixed in the latest version of
mdadm, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Tokarev <[email protected]> (supplier of updated mdadm package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 25 Aug 2012 16:25:37 +0400
Source: mdadm
Binary: mdadm mdadm-udeb
Architecture: source i386
Version: 3.2.5-2
Distribution: unstable
Urgency: low
Maintainer: Debian mdadm maintainers <[email protected]>
Changed-By: Michael Tokarev <[email protected]>
Description: 
 mdadm      - tool to administer Linux MD arrays (software RAID)
 mdadm-udeb - tool to administer Linux MD arrays (software RAID) (udeb)
Closes: 644389 678262 678971 678973 685161
Changes: 
 mdadm (3.2.5-2) unstable; urgency=low
 .
   [ Sergey B Kirpichev ]
   * Fix mdadm.lintian-overrides
   * Fix spelling in binaries, fix lintian warnings
     manpage-has-errors-from-man and hyphen-used-as-minus-sign
   * Drop unused debconf templates
   * Implement status option for mdadm-raid init.d script
   * Fix lintian info's conflicts-with-version: Conflicts -> Breaks
 .
   [ Michael Tokarev ]
   * fix spelling mistakes in previous changelog entry
   * some cleanups for checkarray:
    - change --help printing and shorten/simplify the text
    - make --quiet cumulative and stop documenting --real-quiet
    - do not prduce help in case of incorrect usage, and exit with 1
   * fixes for initramfs integration (Closes: #644389, #678262, #685161):
    - check INITRDSTART=none early
    - do not explicitly load raid level modules (modprobe/kmod does this)
    - do not collect needed raid levels (we include all modules anyway)
    - load md_mod explicitly since we need to change global parameter
 .
   [ Dmitrijs Ledkovs ]
   * Use dh_installinit with --no-restart-on-upgrade, which will start
     arrays, but will not stop them during upgrade. (Closes: 678971)
   * Copy local administrator's modified udev rules as well as the system
     one. (Closes: #678973)
Checksums-Sha1: 
 0adb0a511c48e84a6df6c592a194b822f0bd86ad 1491 mdadm_3.2.5-2.dsc
 ecb854899f80f2a1c42d65372c4fdd8541995dd3 123812 mdadm_3.2.5-2.debian.tar.bz2
 25681523a2527bc3e1fbc253bcfc19a3213f673a 557500 mdadm_3.2.5-2_i386.deb
 a3ec16f51c780efa16a95d4485c8d8711ff76083 168280 mdadm-udeb_3.2.5-2_i386.udeb
Checksums-Sha256: 
 be7597081d477eee49ed355e1033aaf60819d40f2be3af791e47903d5bbea872 1491 
mdadm_3.2.5-2.dsc
 eccfb43e0c1229e79d28e962e7f5145f6a6f4a5be0fba6769c705b7f75b9acae 123812 
mdadm_3.2.5-2.debian.tar.bz2
 9b02aab57c892fc382767d826883890b3f2affa1f4c6cef64f79b40508cc9b63 557500 
mdadm_3.2.5-2_i386.deb
 8f6dba5d0ed2f5f5e8970ab839e2c70e0c8649cbfc5013b19a076d0b9a0e8892 168280 
mdadm-udeb_3.2.5-2_i386.udeb
Files: 
 1bb3d4dcca7a4330d774b593686b0cf2 1491 admin optional mdadm_3.2.5-2.dsc
 f6709ccc6c4786641b699c315e934b3a 123812 admin optional 
mdadm_3.2.5-2.debian.tar.bz2
 976aa4807a03985f78ce7c0946bb18f5 557500 admin optional mdadm_3.2.5-2_i386.deb
 2bb99be01a5e668d3a79d5ddf57dac11 168280 debian-installer optional 
mdadm-udeb_3.2.5-2_i386.udeb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iJwEAQECAAYFAlA5Hg0ACgkQUlPFrXTwyDiLRwQA0WdvAl4PQJlWdWRJ0WPPNabP
wYrJovQAIGGg40X1cpGqOUvkFkleMgrsdRKfgulvM0bzIKVY5kGRYXCcJr78A270
SgD5o4l3PBa2AiHHMFCF+NaihUjGkXWFXARmUadDdBBWjwESBJC5tQtQNJ7CQmkN
IorCGqwX8THn5kQ0S4s=
=Vy2p
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to