Changeset 1903 in MondoRescue for branches/stable/mindi/parted2fdisk.pl


Ignore:
Timestamp:
Apr 10, 2008, 1:13:58 AM (16 years ago)
Author:
Bruno Cornec
Message:

merge -r 1842:1889 2.2.5

File:
1 edited

Legend:

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

    r1842 r1903  
    277277if ($args =~ /^-/) {
    278278    # -l or -s
    279     open (FDISK, "$fdisk $fargs |") || die "Unable to read from $fdisk";
     279    open (FDISK, "$fdisk $fargs 2>/dev/null |") || die "Unable to read from $fdisk";
    280280    while (<FDISK>) {
    281281        print;
     
    284284} else {
    285285    # Modification mode
    286     open (FDISK, "| $fdisk $fargs") || die "Unable to modify through $fdisk";
     286    open (FDISK, "| $fdisk $fargs 2>/dev/null") || die "Unable to modify through $fdisk";
    287287    while (<STDIN>) {
    288288        print FDISK;
     
    444444my $foo;
    445445
    446 open (FDISK, "$fdisk -l $device |") || die "Unable to read from $fdisk";
     446open (FDISK, "$fdisk -l $device 2>/dev/null |") || die "Unable to read from $fdisk";
    447447while (<FDISK>) {
    448448    if ($_ =~ /heads/) {
     
    468468my $foo;
    469469
    470 open (FDISK, "$fdisk -l $device |") || die "Unable to read from $fdisk";
     470open (FDISK, "$fdisk -l $device 2>/dev/null |") || die "Unable to read from $fdisk";
    471471while (<FDISK>) {
    472472    print if (($_ !~ /^\/dev\//) and (not (defined $wpart)) and ($verbose == 1));
     
    606606my $type = "";
    607607
    608 open (FDISK, "$fdisk -l $device |") || die "Unable to read from $fdisk";
     608open (FDISK, "$fdisk -l $device 2>/dev/null |") || die "Unable to read from $fdisk";
    609609while (<FDISK>) {
    610610    if ($_ =~ /EFI GPT/) {
Note: See TracChangeset for help on using the changeset viewer.