aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2006-10-24 12:45:35 +0000
committerFlorent Villard <warly@mandriva.com>2006-10-24 12:45:35 +0000
commitb88a0e5104d2c7e997018feb7d2ce30700205118 (patch)
treeac99733c283674314a98ea9a235ab47ed11ee049
parent3da90b377bdb3b3e29208bc9a9d4d3790c3aac65 (diff)
downloadiurt-b88a0e5104d2c7e997018feb7d2ce30700205118.tar
iurt-b88a0e5104d2c7e997018feb7d2ce30700205118.tar.gz
iurt-b88a0e5104d2c7e997018feb7d2ce30700205118.tar.bz2
iurt-b88a0e5104d2c7e997018feb7d2ce30700205118.tar.xz
iurt-b88a0e5104d2c7e997018feb7d2ce30700205118.zip
add media in the chroot by default
-rwxr-xr-xiurt23
1 files changed, 2 insertions, 1 deletions
diff --git a/iurt2 b/iurt2
index 0e91932..94f6d49 100755
--- a/iurt2
+++ b/iurt2
@@ -460,7 +460,8 @@ if ($df->{per} >= 99) {
if ($run{shell}) {
($union_id, my $chroot_tmp) = create_temp_chroot(\%run, $config, $cache, $union_id, $chroot_tmp, $chroot_tar) or die "FATAL $program_name: could not create temporary chroot";
add_local_user($chroot_tmp, \%run, $config, $luser, $run{uid}) or die "FATAL $program_name: could not add local user";
- $urpmi->set_command($chroot_tmp);
+ #$urpmi->set_command($chroot_tmp);
+ $urpmi->urpmi_command($chroot_tmp, $luser);
$urpmi->install_packages('chroot', $chroot_tmp, $local_spool, \%pack_provide, 'configure', "[ADMIN] installation of urpmi and sudo failed in the chroot $run{my_arch}", { check => 1, maintainer => $config->{admin} }, 'urpmi', 'sudo') or die "FATAL $program_name: could not add urpmi and sudo in the chroot";
add_sudoers(\%run, $chroot_tmp, $luser);
if ($run{shell}) {