Changeset 1837 for branches/2.2.5


Ignore:
Timestamp:
Dec 13, 2007, 7:34:46 PM (12 years ago)
Author:
bruno
Message:

Fix an issue on parted output (K instead of KB) in parted2fdisk at restore time

Location:
branches/2.2.5/mindi
Files:
2 edited

Legend:

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

    r1801 r1837  
    558558
    559559#print FLOG "decode_Bsuf input: $size / $unit ";
    560 if ($size =~ /KB$/i) {
    561     $size =~ s/KB$//i;
     560if ($size =~ /K[B]*$/i) {
     561    $size =~ s/K[B]*$//i;
    562562    $size *= 1024;
    563 } elsif ($size =~ /MB$/i) {
    564     $size =~ s/MB$//i;
     563} elsif ($size =~ /M[B]*$/i) {
     564    $size =~ s/M[B]*$//i;
    565565    $size *= 1048576;
    566 } elsif ($size =~ /GB$/i) {
    567     $size =~ s/GB$//i;
     566} elsif ($size =~ /G[B]*$/i) {
     567    $size =~ s/G[B]*$//i;
    568568    $size *= 1073741824;
    569 } elsif ($size =~ /TB$/i) {
    570     $size =~ s/TB$//i;
     569} elsif ($size =~ /T[B]*$/i) {
     570    $size =~ s/T[B]*$//i;
    571571    $size *= 1099511627776;
    572572} else {
  • branches/2.2.5/mindi/rootfs/sbin/init

    r1830 r1837  
    742742
    743743# Log some useful info
    744 LogIt "init (from mindi v$MINDI_VER-r${MINDI_REV}"
     744LogIt "init (from mindi v$MINDI_VER-r${MINDI_REV})"
    745745LogIt "/proc/cmdline is:"
    746746cat /proc/cmdline  >> $LOGFILE
Note: See TracChangeset for help on using the changeset viewer.