Bug#985481: debootstrap: Detection of docker container is broken with cgroup v2

2021-04-19 Thread Arnaud Rebillout
Hello Tianon, On 4/20/21 2:39 AM, Tianon Gravi wrote: Hey Arnaud, thanks for the CC (and sorry for the delay). On Mon, 12 Apr 2021 at 20:48, Arnaud Rebillout wrote: > Originally, ".dockerenv" was for transmitting the environment > variables of the container across the container boundary -

Bug#985481: debootstrap: Detection of docker container is broken with cgroup v2

2021-04-19 Thread Tianon Gravi
Hey Arnaud, thanks for the CC (and sorry for the delay). On Mon, 12 Apr 2021 at 20:48, Arnaud Rebillout wrote: > > Originally, ".dockerenv" was for transmitting the environment > > variables of the container across the container boundary -- I would > > not recommend relying on its existence ei

Bug#985481: debootstrap: Detection of docker container is broken with cgroup v2

2021-04-16 Thread Nicholas D Steeves
Control: affects -1 release-notes Hi Arnaud! Adding src:docker.io maintainers and Shengjing Zhu (recent uploader) to CC list. Arnaud Rebillout writes: > Hello Nicholas! Thanks for your feedback here, see replies below. > You're welcome :-) > On Sun, 11 Apr 2021 11:51:20 -0400 Nicholas D Stee

Bug#985481: debootstrap: Detection of docker container is broken with cgroup v2

2021-04-12 Thread Arnaud Rebillout
Hello Nicholas! Thanks for your feedback here, see replies below. On Sun, 11 Apr 2021 11:51:20 -0400 Nicholas D Steeves wrote: > I'm not sure that systemd-detect-virt and your patch are > forward-compatible in light of > > Originally, ".dockerenv" was for transmitting the environment > varia

Bug#985481: debootstrap: Detection of docker container is broken with cgroup v2

2021-04-11 Thread Nicholas D Steeves
Attention LXC Team: Does a functioning /sys always exist in an LXC container, or is it absent/disabled in some configurations? Hi Arnaud, Reply follows inline. Arnaud Rebillout writes: > Package: debootstrap > Version: 1.0.123 > Severity: normal > Tags: patch > User: de...@kali.org > Usertags:

Bug#985481: debootstrap: Detection of docker container is broken with cgroup v2

2021-03-18 Thread Arnaud R
I just noticed that there is snippet in scripts/debian-common:     if doing_variant fakechroot || [ "$CONTAINER" = "docker" ]; then     setup_proc_symlink     fi The following bugs are related to docker and /proc, and are possibly related: https://bugs.debian.org/cgi-bin/b

Bug#985481: debootstrap: Detection of docker container is broken with cgroup v2

2021-03-18 Thread Arnaud Rebillout
Package: debootstrap Version: 1.0.123 Severity: normal Tags: patch User: de...@kali.org Usertags: origin-kali Dear Maintainer, The code that is meant to detect if debootstrap is running from within a docker container is broken with cgroup v2. Talking about this particular function and line in the