summaryrefslogtreecommitdiffstats
path: root/perl-install/raid.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/raid.pm')
-rw-r--r--perl-install/raid.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/raid.pm b/perl-install/raid.pm
index acbee3607..1570712db 100644
--- a/perl-install/raid.pm
+++ b/perl-install/raid.pm
@@ -15,6 +15,11 @@ use fs;
sub max_nb() { 31 }
+sub check_prog {
+ my ($in) = @_;
+ $in->do_pkgs->ensure_binary_is_installed('mdadm', 'mdadm') or return;
+}
+
sub new {
my ($raids, %opts) = @_;
my $md_part = { %opts };