Revert "Lib.pm: unknown filesystem label SWAP-sda2 (RHBZ#666578)"
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 27 Jun 2011 17:14:15 +0000 (18:14 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 13 Jul 2011 15:50:16 +0000 (16:50 +0100)
This reverts commit 5cab0d6c807d8a3bf9690375c663d11a10e21656.
(cherry picked from commit 123610f1b5133a9e541a245467f60d065ea96575)

perl/lib/Sys/Guestfs/Lib.pm

index 188d735..4f094de 100644 (file)
@@ -894,7 +894,7 @@ sub _find_filesystem
         my $label = $1;
         foreach (sort keys %$fses) {
             if (exists $fses->{$_}->{label} &&
-                $fses->{$_}->{label} =~ /$label/i) {
+                $fses->{$_}->{label} eq $label) {
                 return ($_, $fses->{$_});
             }
         }