Changeset 717 in MondoRescue


Ignore:
Timestamp:
Jul 25, 2006, 12:04:00 PM (18 years ago)
Author:
bcornec
Message:

Attempt to fix a bug where LABEL FS not mounted referenced in /etc/fstab cause problem.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/mindi

    r715 r717  
    13531353        partition_mountpt=`tr -s '\t' ' ' < $MY_FSTAB | /bin/grep -w "$current_partition" | /bin/grep -vx " *#.*" | $AWK '{print $2}' | head -n1`
    13541354
     1355        # Detects noauto partitions not mounted and exclude them
     1356        partition_option=`tr -s '\t' ' ' < $MY_FSTAB | /bin/grep -w "$current_partition" | /bin/grep -vx " *#.*" | $AWK '{print $4}' | head -n1`
     1357        if [ "`echo "$partition_option" | grep -i noauto`" != "" ] && [ "`mount | grep -w "$partition_mountpt"`" =  "" ] ; then
     1358            continue
     1359        fi
     1360
    13551361        # This part tries to retrieve the correct device from a LABEL line in /etc/fstab
    13561362        # current_partition contains only first column of /etc/fstab
Note: See TracChangeset for help on using the changeset viewer.