summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-05-23 18:27:55 +0000
committerThierry Vignaud <tv@mageia.org>2012-05-23 18:27:55 +0000
commit11c9c9f6e0db616371cd94ea0dfb01cecc0fa511 (patch)
treeacc0293ef149f1cb0bfc9ff73e311a6953bea1d6 /perl-install
parente638f02fbac809b552a00438a3410446069c3f90 (diff)
downloaddrakx-11c9c9f6e0db616371cd94ea0dfb01cecc0fa511.tar
drakx-11c9c9f6e0db616371cd94ea0dfb01cecc0fa511.tar.gz
drakx-11c9c9f6e0db616371cd94ea0dfb01cecc0fa511.tar.bz2
drakx-11c9c9f6e0db616371cd94ea0dfb01cecc0fa511.tar.xz
drakx-11c9c9f6e0db616371cd94ea0dfb01cecc0fa511.zip
(detect_during_install) simplify
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/raid.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/perl-install/raid.pm b/perl-install/raid.pm
index 8ffc0f4e3..e65ee0676 100644
--- a/perl-install/raid.pm
+++ b/perl-install/raid.pm
@@ -187,9 +187,7 @@ sub free_mds {
sub detect_during_install {
my (@parts) = @_;
- foreach (allmodules()) {
- eval { modules::load($_) };
- }
+ eval { modules::load($_) } foreach allmodules();
# udev may have started raids but failed due to not yet loaded modules and
# they remains inactive ("md: personality for level 1 is not loaded!")