martin f. krafft: No longer pass -k to modprobe,

Martin F. Krafft madduck at alioth.debian.org
Mon Apr 27 08:23:12 UTC 2009


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

Author: martin f. krafft <madduck at debian.org>
Date:   Tue Mar 17 13:59:38 2009 +0100

No longer pass -k to modprobe,

-k has has been deprecated for a long time; thanks to Jan Hudec

Debian bug: #519999

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

---

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

diff --git a/debian/changelog b/debian/changelog
index 4f7d715..8384fdd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ mdadm (2.6.9-2) unstable; urgency=low
 
   * Fix the check of whether mdadm.conf defines all devices known to the
     system; thanks Cristian Ionescu-Idbohrn (closes: #525655).
+  * No longer pass -k to modprobe, which has been deprecated for a long time;
+    thanks to Jan Hudec (closes: #519999).
 
  -- martin f. krafft <madduck at debian.org>  Sun, 26 Apr 2009 16:08:28 +0200
 
diff --git a/debian/mdadm-raid b/debian/mdadm-raid
index dd54df2..4f242e9 100644
--- a/debian/mdadm-raid
+++ b/debian/mdadm-raid
@@ -94,7 +94,7 @@ case "${1:-}" in
 
     if is_true $AUTOSTART || is_true ${MDADM_FORCE_AUTOSTART__:-0}; then
       if [ ! -f /proc/mdstat ] && [ -x "$(command -v modprobe)" ] ; then
-        modprobe -kq md 2>/dev/null || :
+        modprobe -q md 2>/dev/null || :
       fi
       if [ ! -f /proc/mdstat ]; then
         log_problem "failed to load MD subsystem"
diff --git a/debian/mdadm-startall b/debian/mdadm-startall
index 5e54b32..aa947b0 100644
--- a/debian/mdadm-startall
+++ b/debian/mdadm-startall
@@ -11,7 +11,7 @@ set -eu
 CONFIG=/etc/mdadm/mdadm.conf
 ALTCONFIG=/etc/mdadm.conf
 
-modprobe -kq md 2>/dev/null || :
+modprobe -q md 2>/dev/null || :
 
 [ ! -f $CONFIG ] && [ -f $ALTCONFIG ] && CONFIG=$ALTCONFIG
 
diff --git a/debian/mdadm.postinst b/debian/mdadm.postinst
index acd03a6..63a4179 100644
--- a/debian/mdadm.postinst
+++ b/debian/mdadm.postinst
@@ -12,7 +12,7 @@ case "${1:-}" in
   configure|reconfigure)
 
     if [ ! -f /proc/mdstat ] && [ -x $(command -v modprobe 2>/dev/null) ]; then
-      modprobe -k md >/dev/null 2>&1 || :
+      modprobe md >/dev/null 2>&1 || :
     fi
     if [ ! -f /proc/mdstat ]; then
       echo 'W: mdadm: failed to load MD subsystem.' >&2




More information about the pkg-mdadm-commits mailing list