Changeset 2186 in MondoRescue


Ignore:
Timestamp:
Apr 30, 2009, 5:59:06 PM (15 years ago)
Author:
Bruno Cornec
Message:

Adds support of special partiion names (ida, cciss, mapth) for format-and-kludge-vfat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/restore-scripts/mondo/format-and-kludge-vfat

    r2085 r2186  
    6363
    6464device=$1
    65 drive=`echo $device | sed s/[0-9]*[0-9]//`
     65echo $device | grep -Eq "/cciss/|/mapper/|/ida/"
     66if [ $? -eq "0" ]; then
     67    drive=`echo $device | sed s/[0-9p]*[0-9]//`
     68else
     69    drive=`echo $drive | sed s/[0-9]*[0-9]//`
     70fi
    6671partition=`echo $device | sed s\%$drive\%\%`
    6772
Note: See TracChangeset for help on using the changeset viewer.