4 find working/scripts/format.* -type f -exec grep mk {} +|awk '{print $NF}' >wehave
5 while read line; do echo -n "$line "; done <wehave >tmp
9 blkid |grep raid|awk '{print $1}'|cut -d: -f1|cut -d/ -f3 >are_raids
10 while read line; do echo -n "$line "; done <are_raids >tmp
13 lv=`cat wehave |grep -v sd|grep -v hd`
14 if [ ! $lv = "" ];then
15 field=`cat working/scripts/create-vg |grep vgcreate|wc -w`
16 while [ $field -ne 0 ];do
17 a=`cat working/scripts/create-vg |grep vgcreate|awk "{ print \$ $field }"`
18 echo $a|grep /dev >/dev/null 2>&1
25 field=$(( field - 1 ))
27 while read line; do echo -n "$line "; done <lvdisks >tmp
37 if [ -f ./nozen ]; then
43 $DIALOG --msgbox "WARNING \n \n \n We only have gathered formatting info for : \n $wehave \n \n \n $are_raids are raid devices \n \n \n And the lvm $lv is composed of $lvm \n \n \n If you choose a part of a raid or lvm , \n the other parts will be choosen automatically" 600 600