Changeset 2546 in MondoRescue for branches/2.2.10/mindi/mindi
- Timestamp:
- Jan 21, 2010, 8:50:00 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mindi/mindi
r2514 r2546 959 959 LVM="false" 960 960 fi 961 # Excluded LVs and GVs are not reported here 961 962 all_partitions=`cat $MINDI_TMP/lvm.res | grep -F ">>>" | cut -d' ' -f2-` 962 963 fi 963 964 all_partitions="$all_partitions `ListAllPartitions 2> /dev/null`" 964 # echo "all partitions = $all_partitions" > /dev/stderr965 965 for i in $IMAGE_DEVS ; do 966 966 mount | grep -F "$i " > /dev/null 2> /dev/null && Die "Sorry, $i is already mounted! CANNOT DO IMAGEDEV on it if it's mounted." … … 1234 1234 fi 1235 1235 fi 1236 if [ "$EXCLUDE_DEVS" ] && [ "`echo " $EXCLUDE_DEVS " | grep -F " $current_partition "`" ] || [ "`echo " $EXCLUDE_DEVS " | grep " $current_partition "`" ] ; then 1237 LogFile "Excluding $current_partition from mountlist" 1238 continue 1236 skip=0 1237 if [ "$EXCLUDE_DEVS" ] ; then 1238 for d in $EXCLUDE_DEVS ; do 1239 if [ "`echo " $current_partition " | grep " $d"`" != "" ]; then 1240 LogFile "Excluding $current_partition from mountlist (due to excluded device $d)" 1241 skip=1 1242 continue 1243 fi 1244 done 1245 fi 1246 if [ $skip -eq 1 ]; then 1247 continue 1239 1248 fi 1240 1249 if [ ! "$partition_mountpt" ] ; then … … 1292 1301 local file=$1 1293 1302 # Coherency verification 1294 ML0=`cat $file | wc -l` 1303 ML01=`cat $file | wc -l` 1304 ML02=`cat $file | grep -v ' lvm ' | wc -l` 1295 1305 ML1=`$AWK '{print $1}' $file | sort -u | wc -l` 1296 ML2=`$AWK '{print $2}' $file | sort -u | wc -l`1297 if [ "$ML0 " -ne "$ML1" ]; then1306 ML2=`$AWK '{print $2}' $file | grep -v ' lvm ' | sort -u | wc -l` 1307 if [ "$ML01" -ne "$ML1" ]; then 1298 1308 LogFile "--------------------------------------------" 1299 1309 echo "WARNING: Duplicate device entry in mountlist" | tee -a $LOGFILE 1300 1310 LogFile "--------------------------------------------" 1301 1311 fi 1302 if [ "$ML0 " -ne "$ML2" ]; then1312 if [ "$ML02" -ne "$ML2" ]; then 1303 1313 LogFile "--------------------------------------------" 1304 1314 echo "WARNING: Duplicate mountpoint entry in mountlist" | tee -a $LOGFILE
Note:
See TracChangeset
for help on using the changeset viewer.