remove senseless check for raid creation

This commit is contained in:
Tobias Powalowski 2010-05-28 18:09:05 +02:00
parent 8814bd5ea6
commit 7a6e5e94f6

View file

@ -1172,7 +1172,7 @@ _raid()
while [ "$PART" != "DONE" ]; do while [ "$PART" != "DONE" ]; do
RAIDNUMBER=$(($RAIDNUMBER + 1)) RAIDNUMBER=$(($RAIDNUMBER + 1))
# clean loop from used partition and options # clean loop from used partition and options
PARTS="$(echo $PARTS | sed -e "s#${PART}\ _##g" -e "s#${PART}[0-9]\ _##g" -e "s#$(echo ${PART} | sed -e 's#[0-9]##g')\ _##g" -e 's#MISSING\ _##g' -e 's#SPARE\ _##g')" PARTS="$(echo $PARTS | sed -e "s#${PART}\ _##g" -e 's#MISSING\ _##g' -e 's#SPARE\ _##g')"
# raid0 doesn't support missing devices # raid0 doesn't support missing devices
! [ "$LEVEL" = "raid0" -o "$LEVEL" = "linear" ] && MDEXTRA="MISSING _" ! [ "$LEVEL" = "raid0" -o "$LEVEL" = "linear" ] && MDEXTRA="MISSING _"
# add more devices # add more devices
@ -1568,7 +1568,6 @@ _luks()
LUKSFINISH="" LUKSFINISH=""
while [ "$LUKSFINISH" != "DONE" ]; do while [ "$LUKSFINISH" != "DONE" ]; do
activate_special_devices activate_special_devices
#PARTS=$(finddisks _)
PARTS="$(findpartitions _)" PARTS="$(findpartitions _)"
ALREADYINUSE="" ALREADYINUSE=""
# skip already encrypted devices, device mapper! # skip already encrypted devices, device mapper!