Changeset 2919 in MondoRescue for branches/3.0/mindi/mindi


Ignore:
Timestamp:
Dec 20, 2011, 6:59:30 PM (12 years ago)
Author:
Bruno Cornec
Message:
  • Fix a bug in mindi when having multiple swap partiions with same starting string (/dev/dm-1 and /dev/dm-16). We now add a space in the grep to avoid mischoice.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mindi/mindi

    r2917 r2919  
    13201320            [ "`echo "$current_partition" | grep -c "^/"`" -ne "1" ] && continue
    13211321            if [ "$partition_format" = "swap" ] || [ "$partition_mountpt" = "swap" ] ; then
    1322                 partition_size=`grep -Fv "Priority" /proc/swaps | tr -s '\t' ' ' | grep -F "$current_partition" | $AWK '{print $3}'`
     1322                partition_size=`grep -Fv "Priority" /proc/swaps | tr -s '\t' ' ' | grep -F "$current_partition " | $AWK '{print $3}'`
    13231323                [ "$partition_mountpt" != "swap" ] && partition_mountpt="swap"
    13241324                [ "$partition_format" != "swap" ] && partition_format="swap"
Note: See TracChangeset for help on using the changeset viewer.