Changeset 748 in MondoRescue


Ignore:
Timestamp:
Aug 5, 2006, 3:06:07 PM (18 years ago)
Author:
Bruno Cornec
Message:

Seems I got it for LVM and LABEL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/mindi

    r747 r748  
    13741374                actual_dev=`/sbin/blkid | /bin/grep "$redhat_label" | grep LABEL= | /bin/cut -d':' -f1`
    13751375                # For LVM FS it will give a /dev/dm-# which should then be converted
    1376                 if [ $LVM = "v2" ] && [ "`grep -q '/dev/dm' $actual_dev`" ]; then
     1376                if [ $LVM = "v2" ] && [ "`echo $actual_dev | grep '/dev/dm'`" ]; then
    13771377                    major=`/bin/ls -l $actual_dev | awk '{print $5}'`
    13781378                    minor=`/bin/ls -l $actual_dev | awk '{print $6}'`
     
    14441444        # For ReHat lvmdisplay doesn't work on /dev/mapper entries
    14451445        #
    1446         if [ $LVM = "v2" ] && [ "`grep -q '/dev/mapper/' $current_partition`" ]; then
     1446        if [ $LVM = "v2" ] && [ "`echo $current_partition | grep '/dev/mapper/'`" ]; then
    14471447            current_lvolume="`find /dev -lname "$current_partition"`"
    14481448        fi
Note: See TracChangeset for help on using the changeset viewer.