Changeset 3364 in MondoRescue for branches/3.2/mindi/parted2fdisk.pl


Ignore:
Timestamp:
Mar 15, 2015, 3:02:52 AM (9 years ago)
Author:
Bruno Cornec
Message:
  • Fix a bad sed call using | as separators (perlism)
  • Handle dev/cciss device type in parted2fidsk
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi/parted2fdisk.pl

    r3355 r3364  
    182182if ($args =~ /-s/) {
    183183    $wpart = $device;
    184     $device =~ s/[0-9]+$//;
     184    # To support dev like cciss/c0d0p1
     185    if ($device =~ /([0-9]+)p[0-9]+$/) {
     186        $device =~ s/([0-9]+)p[0-9]+$/$1/;
     187    } else {
     188        $device =~ s/[0-9]+$//;
     189    }
    185190}
    186191
     
    525530#
    526531# this will return bytes
    527 $un = get_un ($device,$wpart,$verbose);
     532$un = get_un($device,$wpart,$verbose);
    528533
    529534$endmax = get_max($device);
Note: See TracChangeset for help on using the changeset viewer.