summaryrefslogtreecommitdiff
path: root/debian/mdadm-raid
diff options
context:
space:
mode:
authormadduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464>2006-07-22 13:19:41 +0000
committermadduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464>2006-07-22 13:19:41 +0000
commit79990c642218a966d9810e2cecc69793ccc4e30a (patch)
tree06d6af264ec895491f64ee1b18012e664ea41cf5 /debian/mdadm-raid
parent54d00d52f39055ce11492677d5849ea38ade5107 (diff)
* Catching modprobe error in case of absence of the kernel modules, or
a non-modular kernel. Thanks to Holger Levsen.
Diffstat (limited to 'debian/mdadm-raid')
-rw-r--r--debian/mdadm-raid4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/mdadm-raid b/debian/mdadm-raid
index 4616c2aa..8515e694 100644
--- a/debian/mdadm-raid
+++ b/debian/mdadm-raid
@@ -69,8 +69,8 @@ case "${1:-}" in
PREFIX="Assembling RAID array"
if is_true $AUTOSTART; then
- if [ ! -f /proc/mdstat ] && [ -x $(command -v modprobe) ] ; then
- modprobe -k md >/dev/null 2>&1
+ if [ ! -f /proc/mdstat ] && [ -x "$(command -v modprobe)" ] ; then
+ modprobe -kq md 2>/dev/null || :
fi
if [ ! -f /proc/mdstat ]; then
log_problem "failed to load RAID subsystem"