Changeset 2185


Ignore:
Timestamp:
Apr 30, 2009, 5:57:04 PM (10 years ago)
Author:
bruno
Message:

Fix a bug where partition number was wrong for mpath type of dev

File:
1 edited

Legend:

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

    r2137 r2185  
    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.