mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
finished dmraid partitioning mount point setting etc.
This commit is contained in:
parent
9205ca2b0b
commit
7cf8ab2d3f
1 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue