Changeset 2937 in MondoRescue for branches/3.1/mindi/analyze-my-lvm
- Timestamp:
- Jan 28, 2012, 1:51:28 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1/mindi/analyze-my-lvm
r2816 r2937 60 60 done 61 61 list_of_devices="`echo $l | sort -u`" 62 for ed in $MINDI_EXCLUDE_DEVS; do62 for ed in `echo $MINDI_EXCLUDE_DEVS | sed 's/|/ /g'`; do 63 63 if [ "`echo " $list_of_devices" | grep " $ed"`" != "" ]; then 64 64 echo "Not including device $LV_full_string as it was excluded" … … 159 159 160 160 if [ "$MINDI_EXCLUDE_DEVS" ] ; then 161 for ed in $MINDI_EXCLUDE_DEVS; do161 for ed in `echo $MINDI_EXCLUDE_DEVS | sed 's/|/ /g'`; do 162 162 if [ "`echo " $list_of_devices" | grep " $ed"`" != "" ]; then 163 163 echo $current_VG >> $MINDI_TMP/excludedvgs … … 188 188 list_of_devices="`echo $l | sort -u`" 189 189 if [ "$MINDI_EXCLUDE_DEVS" ] ; then 190 for ed in $MINDI_EXCLUDE_DEVS; do190 for ed in `echo $MINDI_EXCLUDE_DEVS | sed 's/|/ /g'`; do 191 191 if [ "`echo " $list_of_devices " | grep " $ed"`" != "" ]; then 192 192 skip=1 … … 211 211 list_of_devices="`echo $l | sort -u`" 212 212 if [ "$MINDI_EXCLUDE_DEVS" ] ; then 213 for ed in $MINDI_EXCLUDE_DEVS; do213 for ed in `echo $MINDI_EXCLUDE_DEVS | sed 's/|/ /g'`; do 214 214 if [ "`echo " $list_of_devices " | grep " $ed"`" != "" ]; then 215 215 skip=1 … … 266 266 skip=0 267 267 if [ "$MINDI_EXCLUDE_DEVS" ] ; then 268 for ed in $MINDI_EXCLUDE_DEVS; do268 for ed in `echo $MINDI_EXCLUDE_DEVS | sed 's/|/ /g'`; do 269 269 if [ "`echo " $rep " | grep " $ed"`" != "" ]; then 270 270 skip=1 … … 291 291 } 292 292 293 ListAllLogicalVolumesSortedBydm() { 294 for d in `ListAllLogicalVolumes` ; do 295 dm=`mindi --readalllink $d | tail -1` 296 echo "$dm|$d" >> $MINDI_TMP/sorteddm 297 done 298 sort -t'|' $MINDI_TMP/sorteddm | cut -d'|' -f2 299 } 293 300 294 301 ListAllLogicalVolumes() { … … 414 421 echo "" 415 422 echo "Finally, create the LV's (logical volumes)." 416 all_logical_volumes=`ListAllLogicalVolumes `423 all_logical_volumes=`ListAllLogicalVolumesSortedBydm` 417 424 for current_LV in $all_logical_volumes ; do 418 425 ProcessLogicalVolume $current_LV
Note:
See TracChangeset
for help on using the changeset viewer.