diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-01-03 13:03:36 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-01-03 13:03:36 +0000 |
commit | 701f4ba3cbaecf0b0a4877c3f283739bd0d232fb (patch) | |
tree | 865bdd55aa8355eb48f1ffa99409751b5a809d79 /perl-install/install_any.pm | |
parent | 3d2e8fe289da08dca406ce89af34e4f87f292032 (diff) | |
download | drakx-701f4ba3cbaecf0b0a4877c3f283739bd0d232fb.tar drakx-701f4ba3cbaecf0b0a4877c3f283739bd0d232fb.tar.gz drakx-701f4ba3cbaecf0b0a4877c3f283739bd0d232fb.tar.bz2 drakx-701f4ba3cbaecf0b0a4877c3f283739bd0d232fb.tar.xz drakx-701f4ba3cbaecf0b0a4877c3f283739bd0d232fb.zip |
move mdkinst.clp on hard drive ASAP
=> allows multi-cd installs even if the mdkinst.clp was not preloaded
=> allows to better memory handling during pkgs install (hopefully at least)
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r-- | perl-install/install_any.pm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index f01f69b6b..7b9a251b5 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -1556,6 +1556,21 @@ sub write_fstab { fs::write_fstab($o->{all_hds}, $o->{prefix}) if !$o->{isUpgrade} || $o->{migrate_device_names}; } +my $clp_name = 'mdkinst.clp'; +sub clp_on_disk() { "$::prefix/tmp/$clp_name" } + +sub move_clp_to_disk() { + return if -e clp_on_disk(); + + my ($loop, $current_clp) = devices::find_clp_loop($clp_name); + log::l("move_clp_to_disk: copying $current_clp to ", clp_on_disk()); + cp_af($current_clp, clp_on_disk()); + run_program::run('losetup', $loop, clp_on_disk()); + + #- in $current_clp eq "/tmp/$clp_name" + unlink "/tmp/$clp_name"; +} + #-############################################################################### #- pcmcia various #-############################################################################### |