Changeset 2529 in MondoRescue
- Timestamp:
- Jan 8, 2010, 12:23:27 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi/mindi
r2503 r2529 1267 1267 fi 1268 1268 fi 1269 if [ "$EXCLUDE_DEVS" ] && [ "`echo " $EXCLUDE_DEVS " | grep -F " $current_partition "`" ] || [ "`echo " $EXCLUDE_DEVS " | grep " $current_partition "`" ] ; then 1270 echo "Excluding $current_partition from mountlist" >> $LOGFILE 1271 continue 1269 if [ "$EXCLUDE_DEVS" ] ; then 1270 for d in "$EXCLUDE_DEVS" ; do 1271 if [ "`echo " $current_partition " | grep " $d"`" != "" ]; then 1272 echo "Excluding $current_partition from mountlist (due to excluded device $d)" >> $LOGFILE 1273 continue 1274 fi 1275 done 1272 1276 fi 1273 1277 if [ ! "$partition_mountpt" ] ; then … … 1324 1328 local file=$1 1325 1329 # Coherency verification 1326 ML0=`cat $file | wc -l` 1330 ML01=`cat $file | wc -l` 1331 ML02=`cat $file | grep -v ' lvm ' | wc -l` 1327 1332 ML1=`$AWK '{print $1}' $file | sort -u | wc -l` 1328 ML2=`$AWK '{print $2}' $file | sort -u | wc -l`1329 if [ "$ML0 " -ne "$ML1" ]; then1333 ML2=`$AWK '{print $2}' $file | grep -v ' lvm ' | sort -u | wc -l` 1334 if [ "$ML01" -ne "$ML1" ]; then 1330 1335 echo "--------------------------------------------" >> $LOGFILE 1331 1336 echo "WARNING: Duplicate device entry in mountlist" | tee -a $LOGFILE 1332 1337 echo "--------------------------------------------" >> $LOGFILE 1333 1338 fi 1334 if [ "$ML0 " -ne "$ML2" ]; then1339 if [ "$ML02" -ne "$ML2" ]; then 1335 1340 echo "--------------------------------------------" >> $LOGFILE 1336 1341 echo "WARNING: Duplicate mountpoint entry in mountlist" | tee -a $LOGFILE
Note:
See TracChangeset
for help on using the changeset viewer.