Changeset 2947 in MondoRescue


Ignore:
Timestamp:
Feb 15, 2012, 1:42:18 AM (12 years ago)
Author:
Bruno Cornec
Message:
  • Fix #586: mindi now skips swap files in the mountlist creation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mindi/mindi

    r2946 r2947  
    13141314            partition_size="lvm"
    13151315        else
    1316             partition_size=`SizeOfPartition $current_partition`
    13171316            [ "`echo "$current_partition" | grep "[0-9]"`" = "" ] && continue
    13181317            [ "`echo "$current_partition" | grep -c "^/"`" -ne "1" ] && continue
    13191318            if [ "$partition_format" = "swap" ] || [ "$partition_mountpt" = "swap" ] ; then
     1319                # Skip swap files
     1320                [ "`echo "$current_partition" | grep -E "^/dev"`" = "" ] && continue
    13201321                partition_size=`grep -Fv "Priority" /proc/swaps | tr -s '\t' ' ' | grep -F "$current_partition " | $AWK '{print $3}'`
    13211322                [ "$partition_mountpt" != "swap" ] && partition_mountpt="swap"
     
    13321333                    echo "I'm guessing $c_p is $(($partition_size/1024))MB" >> $LOGFILE
    13331334                fi
     1335            else
     1336                partition_size=`SizeOfPartition $current_partition`
    13341337            fi
    13351338        fi
Note: See TracChangeset for help on using the changeset viewer.