diff options
Diffstat (limited to 'perl-install/raid.pm')
-rw-r--r-- | perl-install/raid.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/raid.pm b/perl-install/raid.pm index 3f4488ad8..ab6fa0fcb 100644 --- a/perl-install/raid.pm +++ b/perl-install/raid.pm @@ -174,7 +174,7 @@ sub inactivate_and_dirty { sub is_active { my ($dev) = @_; - grep { /^$dev / } cat_("/proc/mdstat"); + cat_("/proc/mdstat") =~ /^$dev /m; } sub inactivate_all() { run_program::run("raidstop", devices::make("md$_")) foreach 0..7 } |