summaryrefslogtreecommitdiffstats
path: root/perl-install/fs
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2015-04-13 22:48:53 +0259
committerThomas Backlund <tmb@mageia.org>2015-04-13 22:48:53 +0259
commit1dac07175aa4e85cf917c50d69f62d59452d19d3 (patch)
treee5d2eb77e916fae51ff95a1e783a6e332dbaddad /perl-install/fs
parenta784151afc4af44994ff55053d3060ef4cb19e35 (diff)
downloaddrakx-1dac07175aa4e85cf917c50d69f62d59452d19d3.tar
drakx-1dac07175aa4e85cf917c50d69f62d59452d19d3.tar.gz
drakx-1dac07175aa4e85cf917c50d69f62d59452d19d3.tar.bz2
drakx-1dac07175aa4e85cf917c50d69f62d59452d19d3.tar.xz
drakx-1dac07175aa4e85cf917c50d69f62d59452d19d3.zip
- enable firmware raids with dmraid/kpartx like we do on
live medias and on fully installed systems
Diffstat (limited to 'perl-install/fs')
-rw-r--r--perl-install/fs/dmraid.pm7
1 files changed, 6 insertions, 1 deletions
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;
}