Lib.pm: unknown filesystem label SWAP-sda2 (RHBZ#666578)
authorDouglas Schilling Landgraf <dougsland@redhat.com>
Sun, 2 Jan 2011 18:53:55 +0000 (18:53 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Sun, 2 Jan 2011 18:58:09 +0000 (18:58 +0000)
commit5cab0d6c807d8a3bf9690375c663d11a10e21656
tree4d03bbcf3863162346352e2e23c99ec3670191af
parente99ac0394acbba2923e361d84511b9646f464585
Lib.pm: unknown filesystem label SWAP-sda2 (RHBZ#666578)

Hi,

This is a purpose patch to avoid the message: unknown filesystem label
SWAP-sda2.

Instead of validate the label with 'eq', use '=~' and /$label/i.

https://bugzilla.redhat.com/show_bug.cgi?id=666578

Thanks
Douglas
perl/lib/Sys/Guestfs/Lib.pm