diff options
author | Thierry Vignaud <tv@mageia.org> | 2013-04-04 16:56:33 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2013-04-04 16:56:33 +0000 |
commit | 77197cbc504fbc5c35c5e6ff4c261e3e0740a2c2 (patch) | |
tree | 7c4be52464c3cbe41dc6df27cd693fff64e339d5 /perl-install/fs/dmraid.pm | |
parent | 39f66f8ef322e9892ce2801a9bca42b586ff2dff (diff) | |
download | drakx-77197cbc504fbc5c35c5e6ff4c261e3e0740a2c2.tar drakx-77197cbc504fbc5c35c5e6ff4c261e3e0740a2c2.tar.gz drakx-77197cbc504fbc5c35c5e6ff4c261e3e0740a2c2.tar.bz2 drakx-77197cbc504fbc5c35c5e6ff4c261e3e0740a2c2.tar.xz drakx-77197cbc504fbc5c35c5e6ff4c261e3e0740a2c2.zip |
(vgs) log ignored dmraid devices (might help mga#9467)
Diffstat (limited to 'perl-install/fs/dmraid.pm')
-rw-r--r-- | perl-install/fs/dmraid.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/fs/dmraid.pm b/perl-install/fs/dmraid.pm index 892a85d0a..eae1fdd86 100644 --- a/perl-install/fs/dmraid.pm +++ b/perl-install/fs/dmraid.pm @@ -117,7 +117,12 @@ sub vgs() { #- device should exist, created by dmraid(8) using libdevmapper #- if it doesn't, we suppose it's not in use - if_(-e "/dev/$dev", $vg); + if (-e "/dev/$dev") { + $vg; + } else { + log::l("ignoring $dev as /dev/$dev doesn't exist"); + (); + } } grep { if ($_->{status} eq 'ok') { |