Changeset 1857 in MondoRescue for branches/2.2.5/mindi/parted2fdisk.pl


Ignore:
Timestamp:
Jan 11, 2008, 3:28:40 PM (16 years ago)
Author:
Bruno Cornec
Message:

remove fdisk error messages on ia64 that end up on screen during restore - such as GPT not supported ...

File:
1 edited

Legend:

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

    r1837 r1857  
    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.