diff options
author | Richard Jones <rjones@trick.home.annexia.org> | 2009-07-14 12:47:53 +0100 |
---|---|---|
committer | Richard Jones <rjones@trick.home.annexia.org> | 2009-07-14 12:47:53 +0100 |
commit | 7b3c76c95162f773dec03e0555d3060f0d2546c9 (patch) | |
tree | 125405f1f16ec254829549708601857f7d0a1d3b /inspector | |
parent | 9af96c41f64567e6fbe0dd25f6ffa90385e9c49a (diff) | |
download | libguestfs-7b3c76c95162f773dec03e0555d3060f0d2546c9.tar.gz libguestfs-7b3c76c95162f773dec03e0555d3060f0d2546c9.tar.xz libguestfs-7b3c76c95162f773dec03e0555d3060f0d2546c9.zip |
virt-inspector: Ignore swap partitions marked as "none".
Diffstat (limited to 'inspector')
-rwxr-xr-x | inspector/virt-inspector.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inspector/virt-inspector.pl b/inspector/virt-inspector.pl index dae17a8d..cd5427a5 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" } |