From: Richard Jones Date: Tue, 14 Jul 2009 11:47:53 +0000 (+0100) Subject: virt-inspector: Ignore swap partitions marked as "none". X-Git-Tag: 1.0.59~6 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=7b3c76c95162f773dec03e0555d3060f0d2546c9 virt-inspector: Ignore swap partitions marked as "none". --- diff --git a/inspector/virt-inspector.pl b/inspector/virt-inspector.pl index dae17a8..cd5427a 100755 --- a/inspector/virt-inspector.pl +++ b/inspector/virt-inspector.pl @@ -307,7 +307,7 @@ if ($output eq "fish" || $output eq "ro-fish") { # Have to mount / first. Luckily '/' is early in the ASCII # character set, so this should be OK. foreach (sort keys %$mounts) { - print "-m $mounts->{$_}:$_ " if $_ ne "swap"; + print "-m $mounts->{$_}:$_ " if $_ ne "swap" && $_ ne "none"; } print "\n" }