summaryrefslogtreecommitdiffstats
path: root/perl-install/fs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-04-04 16:56:33 +0000
committerThierry Vignaud <tv@mageia.org>2013-04-04 16:56:33 +0000
commitd8c77e2cefa3e75fa1c1335af692f01660ac6f21 (patch)
tree7c4be52464c3cbe41dc6df27cd693fff64e339d5 /perl-install/fs
parent635385d736310a1775d9bc1fcb0e18bb2286bf8e (diff)
downloaddrakx-backup-do-not-use-d8c77e2cefa3e75fa1c1335af692f01660ac6f21.tar
drakx-backup-do-not-use-d8c77e2cefa3e75fa1c1335af692f01660ac6f21.tar.gz
drakx-backup-do-not-use-d8c77e2cefa3e75fa1c1335af692f01660ac6f21.tar.bz2
drakx-backup-do-not-use-d8c77e2cefa3e75fa1c1335af692f01660ac6f21.tar.xz
drakx-backup-do-not-use-d8c77e2cefa3e75fa1c1335af692f01660ac6f21.zip
(vgs) log ignored dmraid devices (might help mga#9467)
Diffstat (limited to 'perl-install/fs')
-rw-r--r--perl-install/fs/dmraid.pm7
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') {