virt-inspector: Ignore swap partitions marked as "none".
[libguestfs.git] / 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) {
-       print "-m $mounts->{$_}:$_ " if $_ ne "swap";
+       print "-m $mounts->{$_}:$_ " if $_ ne "swap" && $_ ne "none";
     }
     print "\n"
 }