From 1dac07175aa4e85cf917c50d69f62d59452d19d3 Mon Sep 17 00:00:00 2001 From: Thomas Backlund Date: Mon, 13 Apr 2015 22:48:53 +0259 Subject: - enable firmware raids with dmraid/kpartx like we do on live medias and on fully installed systems --- perl-install/fs/dmraid.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'perl-install/fs') diff --git a/perl-install/fs/dmraid.pm b/perl-install/fs/dmraid.pm index 996dbbc14..7a279abc7 100644 --- a/perl-install/fs/dmraid.pm +++ b/perl-install/fs/dmraid.pm @@ -34,7 +34,12 @@ sub init() { eval { modules::load('dm-mirror', 'dm-zero') }; devices::init_device_mapper(); if ($::isInstall) { - call_dmraid('-ay'); + foreach my $name (call_dmraid('-s', '-c', '-i')) { + chomp($name); + log::l("got: $name"); + call_dmraid('-ay', '-i', '--rm_partitions', '-p', $name); + run_program::run('/sbin/kpartx', '-u', '-a', '/dev/mapper/' . $name); + } } 1; } -- cgit v1.2.1