diff --git a/usr/share/archboot/installer/setup b/usr/share/archboot/installer/setup index 972852aec..43d1cd9d5 100755 --- a/usr/share/archboot/installer/setup +++ b/usr/share/archboot/installer/setup @@ -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