From 7b3c76c95162f773dec03e0555d3060f0d2546c9 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Tue, 14 Jul 2009 12:47:53 +0100 Subject: [PATCH] virt-inspector: Ignore swap partitions marked as "none". --- inspector/virt-inspector.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } -- 1.8.3.1