virt-inspector: Ignore swap partitions marked as "none".
authorRichard Jones <rjones@trick.home.annexia.org>
Tue, 14 Jul 2009 11:47:53 +0000 (12:47 +0100)
committerRichard Jones <rjones@trick.home.annexia.org>
Tue, 14 Jul 2009 11:47:53 +0000 (12:47 +0100)
inspector/virt-inspector.pl

index dae17a8..cd5427a 100755 (executable)
@@ -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) {
     # 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"
 }
     }
     print "\n"
 }