do not run an additional env command inside the chroot

This commit is contained in:
Johannes 'josch' Schauer 2021-01-09 19:44:00 +01:00
parent 7ff3f53fb9
commit 62bcf3261e
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -2644,8 +2644,7 @@ sub run_essential() {
sub {
run_dpkg_progress({
ARGV => [
@{$chrootcmd}, 'env',
'--unset=TMPDIR', 'dpkg',
@{$chrootcmd}, 'dpkg',
'--install', '--force-depends'
],
PKGS => $essential_pkgs,
@ -2852,8 +2851,7 @@ sub run_install() {
. (join ', ', @pkgs_to_install_from_outside) . "...";
run_dpkg_progress({
ARGV => [
@{$chrootcmd}, 'env',
'--unset=TMPDIR', 'dpkg',
@{$chrootcmd}, 'dpkg',
'--install', '--force-depends'
],
PKGS => \@debs_to_install,
@ -2878,10 +2876,8 @@ sub run_install() {
. " chroot...";
run_apt_progress({
ARGV => [
@{$chrootcmd}, 'env',
'--unset=APT_CONFIG', '--unset=TMPDIR',
'apt-get', '--yes',
'install'
@{$chrootcmd}, 'apt-get',
'--yes', 'install'
],
PKGS => $pkgs_to_install,
});