Changeset 2814


Ignore:
Timestamp:
Apr 29, 2011, 3:40:21 PM (8 years ago)
Author:
bruno
Message:

r2186@localhost (orig r2185): bruno | 2009-04-30 17:57:04 +0200
Fix a bug where partition number was wrong for mpath type of dev


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.8/mondo/src/restore-scripts/mondo/grub-MR

    r2137 r2814  
    115115    partno=`basename $bootpart | cut -d'p' -f2`
    116116elif echo $bootpart | grep "/mapper/mpath" > /dev/null ; then
    117     partno=`basename $bootpart | cut -d'p' -f2`
     117    partno=`basename $bootpart | cut -d'p' -f3`
    118118else
    119119    partno=`basename $bootpart | sed s/[a-z]*//`
     
    128128    line=`grep $base /proc/mdstat | head -n1`
    129129    echo "mbrpart was $mbrpart"
    130     mbrpart=`parted2fdisk -l | grep /dev/ | head -n1 | tr ':' ' ' \
    131 | cut -d' ' -f2`
     130    mbrpart=`parted2fdisk -l | grep /dev/ | head -n1 | tr ':' ' ' | cut -d' ' -f2`
    132131    echo "mbrpart is $mbrpart"
    133132    partno="0"; # cheating - FIXME   
Note: See TracChangeset for help on using the changeset viewer.