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
(cherry picked from commit
5cab0d6c807d8a3bf9690375c663d11a10e21656)
my $label = $1;
foreach (sort keys %$fses) {
if (exists $fses->{$_}->{label} &&
my $label = $1;
foreach (sort keys %$fses) {
if (exists $fses->{$_}->{label} &&
- $fses->{$_}->{label} eq $label) {
+ $fses->{$_}->{label} =~ /$label/i) {
return ($_, $fses->{$_});
}
}
return ($_, $fses->{$_});
}
}