Changeset 2158 in MondoRescue for branches/2.2.9/mindi
- Timestamp:
- Mar 5, 2009, 8:01:54 PM (16 years ago)
- Location:
- branches/2.2.9/mindi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi/parted2fdisk.pl
r2154 r2158 78 78 "reiserfs" => "83", 79 79 "linux-swap" => "82", 80 " LVM" => "8e",80 "lvm" => "8e", 81 81 "" => "", 82 82 ); … … 210 210 print FLOG "n $l $part $cylstart $cylend => mkpart primary $start $end\n"; 211 211 system "$parted -s $device mkpart primary ext2 $start $end\n" if ($fake == 0); 212 print FLOG"command (m for help) send back to fake fdisk for mondorestore\n";212 print "command (m for help) send back to fake fdisk for mondorestore\n"; 213 213 } elsif ($i =~ /^d$/) { 214 214 $part = <STDIN>; … … 221 221 system "$parted -s $device rm $part\n" if ($fake == 0); 222 222 get_parted($device,undef,\%start,\%end,undef); 223 print FLOG"command (m for help) send back to fake fdisk for mondorestore\n";223 print "command (m for help) send back to fake fdisk for mondorestore\n"; 224 224 } elsif ($i =~ /^w$/) { 225 225 print FLOG "w => quit\n"; … … 231 231 } 232 232 chomp($part); 233 $l = <STDIN>; 233 # If no partition number given it's 1, and we received the type 234 if ($part !~ /\d+/) { 235 $l = $part; 236 $part = 1 237 } else { 238 $l = <STDIN>; 239 } 234 240 if (not (defined $l)) { 235 241 print FLOG "no type given for tagging partition $part... skipping\n"; … … 241 247 next; 242 248 } 243 print FLOG "t $part $l => mkfs $part $pnum{$l}\n"; 244 system "$parted -s $device mkfs $part $pnum{$l}\n" if ($fake == 0); 245 print FLOG "command (m for help) send back to fake fdisk for mondorestore\n"; 249 250 if ($pnum{$l} eq "lvm") { 251 # In that case this is a flag set, not a mkfs 252 print FLOG "t $part $l => set $part $pnum{$l} on\n"; 253 system "$parted -s $device set $part $pnum{$l} on\n" if ($fake == 0); 254 } else { 255 print FLOG "t $part $l => mkfs $part $pnum{$l}\n"; 256 system "$parted -s $device mkfs $part $pnum{$l}\n" if ($fake == 0); 257 } 258 print "command (m for help) send back to fake fdisk for mondorestore\n"; 246 259 } elsif ($i =~ /^a$/) { 247 260 $part = <STDIN>; … … 251 264 } 252 265 chomp($part); 266 267 # Partition shouldn't be negative or null. Then take the first one. 268 $part = 1 if ($part le 0); 269 253 270 print FLOG "a $part => set $part boot on\n"; 254 271 system "$parted -s $device set $part boot on\n" if ($fake == 0); 255 print FLOG"command (m for help) send back to fake fdisk for mondorestore\n";272 print "command (m for help) send back to fake fdisk for mondorestore\n"; 256 273 } elsif ($i =~ /^q$/) { 257 274 print FLOG "q => quit\n"; … … 338 355 "reiserfs" => "Linux", 339 356 "linux-swap" => "Linux swap", 340 " LVM" => "Linux LVM",357 "lvm" => "Linux LVM", 341 358 "fat16" => "fat16", 342 359 "fat32" => "fat32", -
branches/2.2.9/mindi/rootfs/sbin/init
r2086 r2158 81 81 # May avoid shell error messages 82 82 chmod 666 /dev/tty* /dev/console 83 if [ "$ARCH" = "ia64" ]; then 84 # Required to have a correct terminal or serial console support 85 ln -s -f /dev/ttyS0 /dev/tty 86 fi 83 87 } 84 88
Note:
See TracChangeset
for help on using the changeset viewer.