From b88a0e5104d2c7e997018feb7d2ce30700205118 Mon Sep 17 00:00:00 2001 From: Florent Villard Date: Tue, 24 Oct 2006 12:45:35 +0000 Subject: add media in the chroot by default --- iurt2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'iurt2') 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}) { -- cgit v1.2.1