Changeset 2531 in MondoRescue
- Timestamp:
- Jan 8, 2010, 1:58:43 PM (15 years ago)
- Location:
- branches/2.2.9/mindi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi/analyze-my-lvm
r2530 r2531 177 177 178 178 ListLvmDrivesAndPartitions() { 179 # We get partitions in this loop not devices 179 180 for d in `$LVMCMD vgdisplay -v 2> /dev/null | grep "PV Name" | sed 's/(#)//' | awk '{print $3}'`; do 180 181 # Skip devices excluded, coming from mondoarchive 181 if [ "$EXCLUDE_DEVS" ] && [ "`echo " $EXCLUDE_DEVS " | grep " $d"`" != "" ]; then 182 skip=0 183 if [ "$EXCLUDE_DEVS" ] ; then 184 for ed in $EXCLUDE_DEVS ; do 185 if [ "`echo " $d " | grep " $ed"`" != "" ]; then 186 echo "Excluding $d from i-want-my-lvm (due to excluded device $ed)" 187 skip=1 188 continue 189 fi 190 done 191 fi 192 if [ $skip -eq 1 ]; then 182 193 continue 183 194 fi … … 185 196 if [ -f /etc/multipath.conf ]; then 186 197 i=`GiveMapperOfdm $d` 187 if [ "$EXCLUDE_DEVS" ] && [ "`echo " $EXCLUDE_DEVS " | grep " $i"`" != "" ]; then 198 skip=0 199 if [ "$EXCLUDE_DEVS" ] ; then 200 for ed in $EXCLUDE_DEVS ; do 201 if [ "`echo " $i " | grep " $ed"`" != "" ]; then 202 echo "Excluding $i from i-want-my-lvm (due to excluded device $ed)" 203 skip=1 204 continue 205 fi 206 done 207 fi 208 if [ $skip -eq 1 ]; then 188 209 continue 189 210 fi -
branches/2.2.9/mindi/mindi
r2530 r2531 1269 1269 skip=0 1270 1270 if [ "$EXCLUDE_DEVS" ] ; then 1271 for d in "$EXCLUDE_DEVS"; do1271 for d in $EXCLUDE_DEVS ; do 1272 1272 if [ "`echo " $current_partition " | grep " $d"`" != "" ]; then 1273 1273 echo "Excluding $current_partition from mountlist (due to excluded device $d)" >> $LOGFILE 1274 skip=1 1274 1275 continue 1275 skip=11276 1276 fi 1277 1277 done 1278 1278 fi 1279 1279 if [ $skip -eq 1 ]; then 1280 1280 continue 1281 1281 fi 1282 1282 if [ ! "$partition_mountpt" ] ; then
Note:
See TracChangeset
for help on using the changeset viewer.