Browse Source

dmraid: let dmraid setup the partitions

master
Harald Hoyer 12 years ago
parent
commit
fbf717086e
  1. 6
      modules.d/90dmraid/dmraid.sh

6
modules.d/90dmraid/dmraid.sh

@ -27,8 +27,7 @@ if [ -n "$DM_RAIDS" ] || getargbool 0 rd.auto; then @@ -27,8 +27,7 @@ if [ -n "$DM_RAIDS" ] || getargbool 0 rd.auto; then
for s in $SETS; do
if [ "${s##$r}" != "$s" ]; then
info "Activating $s"
dmraid -ay -i -p --rm_partitions "$s" 2>&1 | vinfo
[ -e "/dev/mapper/$s" ] && kpartx -a "/dev/mapper/$s" 2>&1 | vinfo
dmraid -ay -i --rm_partitions "$s" 2>&1 | vinfo
udevsettle
fi
done
@ -37,8 +36,7 @@ if [ -n "$DM_RAIDS" ] || getargbool 0 rd.auto; then @@ -37,8 +36,7 @@ if [ -n "$DM_RAIDS" ] || getargbool 0 rd.auto; then
# scan and activate all DM RAIDS
for s in $SETS; do
info "Activating $s"
dmraid -ay -i -p --rm_partitions "$s" 2>&1 | vinfo
[ -e "/dev/mapper/$s" ] && kpartx -a "/dev/mapper/$s" 2>&1 | vinfo
dmraid -ay -i --rm_partitions "$s" 2>&1 | vinfo
done
fi


Loading…
Cancel
Save