summaryrefslogtreecommitdiffstats
path: root/perl-install/raid.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-10-27 10:07:56 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-10-27 10:07:56 +0000
commit2890ee9dcb7cc758bdd7f08e9542b680f37e52f0 (patch)
tree69482983dfbdd8328a6158a99deb8f83b00169be /perl-install/raid.pm
parent544a1b148cac7d4e3ad3ea8b4095ca3546230296 (diff)
downloaddrakx-2890ee9dcb7cc758bdd7f08e9542b680f37e52f0.tar
drakx-2890ee9dcb7cc758bdd7f08e9542b680f37e52f0.tar.gz
drakx-2890ee9dcb7cc758bdd7f08e9542b680f37e52f0.tar.bz2
drakx-2890ee9dcb7cc758bdd7f08e9542b680f37e52f0.tar.xz
drakx-2890ee9dcb7cc758bdd7f08e9542b680f37e52f0.zip
since we need mdadm, ensure we have it (bugzilla #12146)
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 };