forked from josch/mmdebstrap
do not run an additional env command inside the chroot
This commit is contained in:
parent
7ff3f53fb9
commit
62bcf3261e
1 changed files with 6 additions and 10 deletions
12
mmdebstrap
12
mmdebstrap
|
@ -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,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue