From 43c925426295c54eefc4a93cd02efc5ba2751411 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 28 Feb 2008 22:04:59 +0000 Subject: move mapper devices initialization slightly before (for next commit) --- perl-install/install/install2.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/perl-install/install/install2.pm b/perl-install/install/install2.pm index 269dd5b7e..4fa14fb82 100644 --- a/perl-install/install/install2.pm +++ b/perl-install/install/install2.pm @@ -182,6 +182,12 @@ sub formatPartitions { eval { fs::mount::mount('none', "$::prefix/sys", 'sysfs') }; eval { fs::mount::usbfs($::prefix) }; + #- needed by lilo + if (-d '/dev/mapper' && !$::local_install) { + my @vgs = map { $_->{VG_name} } @{$o->{all_hds}{lvms}}; + -e "/dev/$_" and cp_af("/dev/$_", "$::prefix/dev") foreach 'mapper', @vgs; + } + install::any::screenshot_dir__and_move(); install::any::move_compressed_image_to_disk($o); @@ -189,12 +195,6 @@ sub formatPartitions { require raid; raid::write_conf($o->{all_hds}{raids}); - - #- needed by lilo - if (-d '/dev/mapper' && !$::local_install) { - my @vgs = map { $_->{VG_name} } @{$o->{all_hds}{lvms}}; - -e "/dev/$_" and cp_af("/dev/$_", "$::prefix/dev") foreach 'mapper', @vgs; - } } #------------------------------------------------------------------------------ -- cgit v1.2.1