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 untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

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