diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-08-21 18:15:37 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-08-21 18:15:37 +0000 |
commit | e2df2b17c50af038bbfe15f5b6dd9a21c532ae5b (patch) | |
tree | 61b2e028ffcbbb85172104a24693a20cab0d30ba /perl-install/install2.pm | |
parent | 12eb8608ad517afff8c323e276f2f4f4e5405896 (diff) | |
download | drakx-e2df2b17c50af038bbfe15f5b6dd9a21c532ae5b.tar drakx-e2df2b17c50af038bbfe15f5b6dd9a21c532ae5b.tar.gz drakx-e2df2b17c50af038bbfe15f5b6dd9a21c532ae5b.tar.bz2 drakx-e2df2b17c50af038bbfe15f5b6dd9a21c532ae5b.tar.xz drakx-e2df2b17c50af038bbfe15f5b6dd9a21c532ae5b.zip |
no_comment
Diffstat (limited to 'perl-install/install2.pm')
-rw-r--r-- | perl-install/install2.pm | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/perl-install/install2.pm b/perl-install/install2.pm index cfa566187..dff89ba0f 100644 --- a/perl-install/install2.pm +++ b/perl-install/install2.pm @@ -580,7 +580,8 @@ sub main { mkdir $o->{root}, 0755; #- make sure we don't pick up any gunk from the outside world - $ENV{PATH} = "/usr/bin:/bin:/sbin:/usr/sbin:/usr/X11R6/bin:$o->{prefix}/sbin:$o->{prefix}/bin:$o->{prefix}/usr/sbin:$o->{prefix}/usr/bin:$o->{prefix}/usr/X11R6/bin" unless $::g_auto_install; + my $remote_path = "$o->{prefix}/sbin:$o->{prefix}/bin:$o->{prefix}/usr/sbin:$o->{prefix}/usr/bin:$o->{prefix}/usr/X11R6/bin"; + $ENV{PATH} = "/usr/bin:/bin:/sbin:/usr/sbin:/usr/X11R6/bin:$remote_path" unless $::g_auto_install; $o->{interactive} ||= 'gtk'; if ($o->{interactive} eq "gtk" && availableMemory < 22 * 1024) { @@ -608,11 +609,22 @@ sub main { $o->{prefix} = $::testing ? "/tmp/test-perl-install" : "/mnt"; mkdir $o->{prefix}, 0755; + modules::unload($_) foreach qw(vfat msdos fat); + modules::load_deps(($::testing ? ".." : "") . "/modules/modules.dep"); + modules::read_stage1_conf("/tmp/conf.modules"); + modules::read_already_loaded(); + + eval { modules::load("af_packet") }; + + map_index { + modules::add_alias("sound-slot-$::i", $_->{driver}); + } modules::get_that_type('sound'); + #- needed very early for install_steps_gtk modules::load_thiskind("usb"); eval { ($o->{mouse}, $o->{wacom}) = mouse::detect() } unless $o->{nomouseprobe} || $o->{mouse}; - lang::set($o->{lang}) if $o->{lang} ne 'en'; #- mainly for defcfg + lang::set($o->{lang}); #- mainly for defcfg $o->{allowFB} = listlength(cat_("/proc/fb")); @@ -652,19 +664,6 @@ sub main { add2hash(network::findIntf($o->{intf} ||= [], $l->{DEVICE}), $l); } - modules::unload($_) foreach qw(vfat msdos fat); - modules::load_deps(($::testing ? ".." : "") . "/modules/modules.dep"); - modules::read_stage1_conf("/tmp/conf.modules"); - modules::read_already_loaded(); - - eval { modules::load("af_packet") }; - - map_index { - modules::add_alias("snd-slot-$::i", $_->{driver}); - } modules::get_that_type('sound'); - - lang::set($o->{lang}); - #-the main cycle my $clicked = 0; MAIN: for ($o->{step} = $o->{steps}{first};; $o->{step} = getNextStep()) { @@ -713,6 +712,8 @@ sub main { #- mainly for auto_install's run_program::rooted($o->{prefix}, "sh", "-c", $o->{postInstall}) if $o->{postInstall}; + do { local $ENV{PATH} = $remote_path; + run_program::run("bash", "-c", $o->{postInstallNonRooted}) } if $o->{postInstallNonRooted}; #- have the really bleeding edge ddebug.log eval { commands::cp('-f', "/tmp/ddebug.log", "$o->{prefix}/root") }; |