diff options
author | Peter Jones <pjones@redhat.com> | 2006-01-31 19:58:44 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2006-01-31 19:58:44 +0000 |
commit | f4879ffdbc135f6a31d6db955e672cee5fbb57a0 (patch) | |
tree | a1ced0058aa22feef3ce684991981f197beac5d0 /rc.d/rc.sysinit | |
parent | 465f2780aca7ef1f8760a3a90640fab016402546 (diff) | |
download | initscripts-f4879ffdbc135f6a31d6db955e672cee5fbb57a0.tar initscripts-f4879ffdbc135f6a31d6db955e672cee5fbb57a0.tar.gz initscripts-f4879ffdbc135f6a31d6db955e672cee5fbb57a0.tar.bz2 initscripts-f4879ffdbc135f6a31d6db955e672cee5fbb57a0.tar.xz initscripts-f4879ffdbc135f6a31d6db955e672cee5fbb57a0.zip |
- check for active dmraid devices by table (rather than name) beforer8-21
activation
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-x | rc.d/rc.sysinit | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index ac61126f..f7d849e1 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -249,7 +249,12 @@ if [ -c /dev/mapper/control ]; then if [ -x /sbin/dmraid ]; then modprobe dm-mirror >/dev/null 2>&1 - /sbin/dmraid -a y --ignorelocking + for x in $(dmraid -ay -t --ignorelocking | cut -d: -f1) ; do + dmname=$(resolve_dm_name $x) + if [ -z "$dmname" ]; then + /sbin/dmraid -a y --ignorelocking "$dmname" + fi + done fi if [ -x /sbin/lvm.static ]; then |