Changeset 1986 in MondoRescue for branches/2.2.7/mindi/mindi


Ignore:
Timestamp:
Jun 20, 2008, 3:54:45 AM (16 years ago)
Author:
Bruno Cornec
Message:

Fix #262 (based on a patch from arneb)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.7/mindi/mindi

    r1984 r1986  
    10161016        fi
    10171017
     1018        # set default in case we dont't find it
     1019        str_to_find_fmt_with=$current_partition
     1020
    10181021        # This part tries to retrieve the correct device from a LABEL line in /etc/fstab
    10191022        # current_partition contains only first column of /etc/fstab
    10201023        if [ "`echo "$current_partition" | /bin/grep -i "LABEL="`" != "" ]; then
    1021             str_to_find_fmt_with=$current_partition
    10221024            redhat_label=`echo "$current_partition" | cut -d'=' -f2`
    10231025            actual_dev=""
     
    10891091        # current_partition contains only first column of /etc/fstab
    10901092        elif [ "`echo "$current_partition" | /bin/grep -i "UUID="`" != "" ]; then
    1091             str_to_find_fmt_with=$current_partition
    10921093            uuid=`echo "$current_partition" | cut -d'=' -f2`
    10931094            actual_dev=""
     
    11501151            # they use symlinks in fstab unrelated to what is shown in mount !
    11511152            if [ _"$partition_mountpt" = _"" ]; then
     1153                # set default in case we dont't find it
    11521154                for tmpp in `tr -s '\t' ' ' < $MY_FSTAB | /bin/grep -Ev "^#" | $AWK '{print $1}'`; do
    11531155                        if [ _"`readlink -f $tmpp`" = _"$current_partition" ]; then
     
    11571159                        fi
    11581160                done
    1159             else
    1160                 str_to_find_fmt_with=$current_partition
    11611161            fi
    11621162        fi
Note: See TracChangeset for help on using the changeset viewer.