Run cpio with --quiet option so it doesn't print 'xx blocks'
authorRichard Jones <rjones@trick.home.annexia.org>
Wed, 29 Jul 2009 14:55:17 +0000 (15:55 +0100)
committerRichard Jones <rjones@trick.home.annexia.org>
Wed, 29 Jul 2009 14:55:17 +0000 (15:55 +0100)
perl/lib/Sys/Guestfs/Lib.pm

index 7a734aa..601b3f4 100644 (file)
@@ -433,7 +433,7 @@ sub file_architecture
        $g->download ($path, "$dir/initrd");
 
        my $bins = join " ", map { "bin/$_" } @_initrd_binaries;
-       my $cmd = "cd $dir && $zcat initrd | cpio -id $bins";
+       my $cmd = "cd $dir && $zcat initrd | cpio --quiet -id $bins";
        my $r = system ($cmd);
        die __x("cpio command failed: {error}", error => $?)
            unless $r == 0;