make sure that apt puts its logs into the chroot

This commit is contained in:
Johannes 'josch' Schauer 2018-10-22 11:12:11 +02:00
parent 11633c7278
commit 191bc47f2c
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -582,6 +582,7 @@ sub setup {
print $conf "Dir::Cache \"$options->{root}/var/cache/apt\";\n"; print $conf "Dir::Cache \"$options->{root}/var/cache/apt\";\n";
# for retrieving the essential packages set, only download # for retrieving the essential packages set, only download
print $conf "Apt::Get::Download-Only true;\n"; print $conf "Apt::Get::Download-Only true;\n";
print $conf "Dir::Log \"$options->{root}/var/log/apt\";\n";
# for authentication, use the keyrings from the host # for authentication, use the keyrings from the host
print $conf "Dir::Etc::Trusted \"/etc/apt/trusted.gpg\";\n"; print $conf "Dir::Etc::Trusted \"/etc/apt/trusted.gpg\";\n";
print $conf "Dir::Etc::TrustedParts \"/etc/apt/trusted.gpg.d\";\n"; print $conf "Dir::Etc::TrustedParts \"/etc/apt/trusted.gpg.d\";\n";