[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1031105: unshared debootstrap fails if auto-apt-proxy is installed



Control: tag -1 + patch

Hi,

Quoting Antonio Terceiro (2023-05-16 22:30:02)
> Maybe I am missing something, but debootstrap has no knowledge about
> auto-apt-proxy,

it does:

https://sources.debian.org/src/debootstrap/1.0.128%2Bnmu2/debootstrap/#L457

> why would debootstrap be the one responsible for disabling auto-apt-proxy?
> Shouldn't mmdebstrap setup a reasonable (empty) /tmp since it's the one who
> is setting up the unshared user namespace?

being in an unshared user namespace does not mean you are inside a chroot.
Since we are not inside a chroot, the unshared user sees files in /tmp with
different permissions than the outside user. It is not reasonable to expect
mmdebstrap to hose things in /tmp.

Here is a possible fix:

https://salsa.debian.org/installer-team/debootstrap/-/merge_requests/90

With this change, debootstrap will skip running auto-apt-proxy when the
http_proxy environment variable is set to the empty string.

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature


Reply to: