finished dmraid partitioning mount point setting etc.

This commit is contained in:
Tobias Powalowski 2009-06-27 12:18:45 +02:00
parent 9205ca2b0b
commit 7cf8ab2d3f

View file

@ -721,6 +721,13 @@ _raid()
k=$(echo $i | sed -e 's#[0-9]##g')
PARTS=$(echo $PARTS | sed -e "s#$k\ _##g")
done
# skip dmraid devices
for i in $(ls /dev/mapper/$(dmraid -s -c)*); do
ALREADYINUSE="$ALREADYINUSE $i"
done
for i in $ALREADYINUSE; do
PARTS=$(echo $PARTS | sed -e "s#$i\ _##g")
done
# break if all devices are in use
if [ "$PARTS" = "" ]; then
DIALOG --msgbox "All devices in use. No more devices left for new creation." 0 0
@ -809,6 +816,13 @@ _raidpartitions()
k=$(echo $i | sed -e 's#[0-9]##g')
PARTS=$(echo $PARTS | sed -e "s#$k\ _##g")
done
# skip dmraid devices
for i in $(ls /dev/mapper/$(dmraid -s -c)*); do
ALREADYINUSE="$ALREADYINUSE $i"
done
for i in $ALREADYINUSE; do
PARTS=$(echo $PARTS | sed -e "s#$i\ _##g")
done
# break if all devices are in use
if [ "$PARTS" = "" ]; then
DIALOG --msgbox "All devices in use. No more devices left for new creation." 0 0