summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
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!")