Changeset 2566 in MondoRescue
- Timestamp:
- Feb 1, 2010, 5:07:15 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
r2565 r2566 51 51 fi 52 52 fi 53 54 # Exclude LVs member of that env var 55 if [ "$MINDI_EXCLUDE_DEVS" ] ; then 56 for ed in $MINDI_EXCLUDE_DEVS ; do 57 list_of_devices="`GiveMapperOfdm $LV_full_string`" 58 if [ "`echo " $list_of_devices" | grep " $ed"`" != "" ]; then 59 echo "Not including device $LV_full_string as it was excluded" 60 return 61 fi 62 done 63 fi 53 64 # Do not process LV whose VG are excluded 54 65 if [ -f $MINDI_TMP/excludedvgs ]; then 55 if [ "`grep $volume_group $MINDI_TMP/excludedvgs`" = "" ]; then 56 echo "# $LVMCMD lvcreate$params -n $logical_volume $volume_group" 57 else 66 if [ "`grep $volume_group $MINDI_TMP/excludedvgs`" != "" ]; then 58 67 echo "Not including LV $logical_volume as VG $volume_group was excluded" 59 fi 60 else 61 echo "# $LVMCMD lvcreate$params -n $logical_volume $volume_group" 62 fi 68 return 69 fi 70 fi 71 72 echo "# $LVMCMD lvcreate$params -n $logical_volume $volume_group" 63 73 } 64 74 -
branches/2.2.9/mindi/mindi
r2564 r2566 1187 1187 fi 1188 1188 1189 # Look for devices which have to be excluded 1190 skip=0 1191 if [ "$MINDI_EXCLUDE_DEVS" ] ; then 1192 for d in $MINDI_EXCLUDE_DEVS ; do 1193 if [ "`echo " $current_partition " | grep " $d"`" != "" ]; then 1194 echo "Excluding $current_partition from mountlist (due to excluded device $d)" >> $LOGFILE 1195 skip=1 1196 continue 1197 fi 1198 done 1199 fi 1200 if [ $skip -eq 1 ]; then 1201 continue 1202 fi 1203 1189 1204 partition_format=`$AWK '$1 == "'"$str_to_find_fmt_with"'" {print $3}' $MY_FSTAB` 1190 1205 # Some distributions such as Debian do not put /dev/<VG>/<LV> in fstab … … 1268 1283 fi 1269 1284 fi 1270 skip=0 1271 if [ "$MINDI_EXCLUDE_DEVS" ] ; then 1272 for d in $MINDI_EXCLUDE_DEVS ; do 1273 if [ "`echo " $current_partition " | grep " $d"`" != "" ]; then 1274 echo "Excluding $current_partition from mountlist (due to excluded device $d)" >> $LOGFILE 1275 skip=1 1276 continue 1277 fi 1278 done 1279 fi 1280 if [ $skip -eq 1 ]; then 1281 continue 1282 fi 1285 1283 1286 if [ ! "$partition_mountpt" ] ; then 1284 1287 echo "------- $FDISK -l $qq log ------------" >> $LOGFILE
Note:
See TracChangeset
for help on using the changeset viewer.