Changeset 980 in MondoRescue


Ignore:
Timestamp:
Nov 26, 2006, 10:04:53 PM (17 years ago)
Author:
Bruno Cornec
Message:

Remove full path from /bin/cut (wrong on Mandriva, and others)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/mindi

    r976 r980  
    12271227        if [ "`echo "$current_partition" | /bin/grep -i "LABEL="`" != "" ]; then
    12281228            str_to_find_fmt_with=$current_partition
    1229             redhat_label=`echo "$current_partition" | /bin/cut -d'=' -f2`
     1229            redhat_label=`echo "$current_partition" | cut -d'=' -f2`
    12301230            actual_dev=""
    12311231
     
    12371237            # 2nd try : blkid, the good way for all LABEL except swap
    12381238            if [ "x$actual_dev" = "x" -a -x "/sbin/blkid" ]; then
    1239                 actual_dev=`/sbin/blkid | /bin/grep "$redhat_label" | grep LABEL= | /bin/cut -d':' -f1`
     1239                actual_dev=`/sbin/blkid | /bin/grep "$redhat_label" | grep LABEL= | cut -d':' -f1`
    12401240                # For LVM FS it will give a /dev/dm-# which should then be converted
    12411241                if [ $LVM = "v2" ] && [ "`echo $actual_dev | grep '/dev/dm'`" ]; then
     
    12561256            # For LVM gives a /dev/mapper entry
    12571257            if [ "x$actual_dev" = "x" ]; then
    1258                 actual_dev=`/bin/mount -l | /bin/grep "\[$redhat_label\]" | /bin/cut -d' ' -f1`
     1258                actual_dev=`/bin/mount -l | /bin/grep "\[$redhat_label\]" | cut -d' ' -f1`
    12591259            fi
    12601260   
     
    12921292        if [ "`echo "$current_partition" | /bin/grep -i "UUID="`" != "" ]; then
    12931293            str_to_find_fmt_with=$current_partition
    1294             uuid=`echo "$current_partition" | /bin/cut -d'=' -f2`
     1294            uuid=`echo "$current_partition" | cut -d'=' -f2`
    12951295            actual_dev=""
    12961296
     
    13021302            # 2nd try : blkid, the good way for all LABEL except swap
    13031303            if [ "x$actual_dev" = "x" -a -x "/sbin/blkid" ]; then
    1304                 actual_dev=`/sbin/blkid | /bin/grep "$uuid" | grep UUID= | /bin/cut -d':' -f1`
     1304                actual_dev=`/sbin/blkid | /bin/grep "$uuid" | grep UUID= | cut -d':' -f1`
    13051305                # For LVM FS it will give a /dev/dm-# which should then be converted
    13061306                if [ $LVM = "v2" ] && [ "`echo $actual_dev | grep '/dev/dm'`" ]; then
Note: See TracChangeset for help on using the changeset viewer.