Changeset 2154 in MondoRescue
- Timestamp:
- Feb 19, 2009, 12:03:57 AM (16 years ago)
- Location:
- branches/2.2.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi/parted2fdisk.pl
r2131 r2154 142 142 if ($i =~ /^p$/) { 143 143 fdisk_list($device,undef,\%start,\%end, 1); 144 } 145 elsif ($i =~ /^n$/) { 144 } elsif ($i =~ /^n$/) { 146 145 fdisk_list($device,undef,\%start,\%end, 0); 147 146 if ($type ne "gpt") { … … 211 210 print FLOG "n $l $part $cylstart $cylend => mkpart primary $start $end\n"; 212 211 system "$parted -s $device mkpart primary ext2 $start $end\n" if ($fake == 0); 213 }214 elsif ($i =~ /^d$/) {212 print FLOG "command (m for help) send back to fake fdisk for mondorestore\n"; 213 } elsif ($i =~ /^d$/) { 215 214 $part = <STDIN>; 216 215 if (not (defined $part)) { … … 222 221 system "$parted -s $device rm $part\n" if ($fake == 0); 223 222 get_parted($device,undef,\%start,\%end,undef); 224 }225 elsif ($i =~ /^w$/) {223 print FLOG "command (m for help) send back to fake fdisk for mondorestore\n"; 224 } elsif ($i =~ /^w$/) { 226 225 print FLOG "w => quit\n"; 227 } 228 elsif ($i =~ /^t$/) { 226 } elsif ($i =~ /^t$/) { 229 227 $part = <STDIN>; 230 228 if (not (defined $part)) { … … 245 243 print FLOG "t $part $l => mkfs $part $pnum{$l}\n"; 246 244 system "$parted -s $device mkfs $part $pnum{$l}\n" if ($fake == 0); 247 }248 elsif ($i =~ /^a$/) {245 print FLOG "command (m for help) send back to fake fdisk for mondorestore\n"; 246 } elsif ($i =~ /^a$/) { 249 247 $part = <STDIN>; 250 248 if (not (defined $part)) { … … 255 253 print FLOG "a $part => set $part boot on\n"; 256 254 system "$parted -s $device set $part boot on\n" if ($fake == 0); 257 }258 elsif ($i =~ /^q$/) {255 print FLOG "command (m for help) send back to fake fdisk for mondorestore\n"; 256 } elsif ($i =~ /^q$/) { 259 257 print FLOG "q => quit\n"; 260 } 261 else { 258 } else { 262 259 print FLOG "Unknown command: $i\n"; 263 260 next; -
branches/2.2.9/mondo/src/mondorestore/mondo-prep.c
r2147 r2154 1784 1784 MONDO_LOGFILE); 1785 1785 1786 /* BERLIOS: sho ould not be called each time */1786 /* BERLIOS: should not be called each time */ 1787 1787 part_table_fmt = which_partition_format(drive); 1788 1788 output[0] = '\0';
Note:
See TracChangeset
for help on using the changeset viewer.