diff options
Diffstat (limited to 'perl-install/install2.pm')
-rw-r--r-- | perl-install/install2.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/install2.pm b/perl-install/install2.pm index 392a502f3..e810dedee 100644 --- a/perl-install/install2.pm +++ b/perl-install/install2.pm @@ -599,8 +599,9 @@ sub main { modules::write_conf($o->{prefix}); #- mainly for auto_install's - run_program::run("bash", "-c", $o->{postInstallNonRooted}) if $o->{postInstallNonRooted}; - run_program::rooted($o->{prefix}, "sh", "-c", $o->{postInstall}) if $o->{postInstall}; + #- do not use run_program::xxx because it doesn't leave stdin/stdout unchanged + system("bash", "-c", $o->{postInstallNonRooted}) if $o->{postInstallNonRooted}; + system("chroot", $o->{prefix}, "bash", "-c", $o->{postInstall}) if $o->{postInstall}; install_any::ejectCdrom(); |