Control: reassign -1 debootstrap 1.0.114
Control: tag -1 - upstream

On Tue, Jun 18, 2019 at 01:49:27PM +0000, Tobias Junghans wrote:
> I tried to upgrade my Docker-based pbuilder containers from stretch to
> buster. However it appears that pbuilder and/or debootstrap do not work
> properly inside Docker containers any longer due to issues with mounting
> special filesystems such as proc and devpts.

From your log it seems like it's debootstrap that is actually failing.

I don't use docker and I don't really want to figure out how to try it,
so I'll just bounce the ball to the debootstrap maintainers :)

> The issue can be reproduced easily in a Debian Buster based container:
> 
> # docker run --privileged -it debian:buster /bin/bash
> 
> root@d81f634fe4a0:/# cat /proc/mounts
> overlay / overlay 
> rw,relatime,lowerdir=/var/lib/docker/overlay2/l/TPOD4JNRBNCTMXNHYCY5XVRBQ3:/var/lib/docker/overlay2/l/TSD62UVCIJQ2LJ4XTUHKTVEK77,upperdir=/var/lib/docker/overlay2/aa29cac2d0ebecfb12fdd71a9952845140052615f2bd746c4336daa8d7a4d533/diff,workdir=/var/lib/docker/overlay2/aa29cac2d0ebecfb12fdd71a9952845140052615f2bd746c4336daa8d7a4d533/work
>  0 0
> proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
> tmpfs /dev tmpfs rw,nosuid,size=65536k,mode=755 0 0
> devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666 
> 0 0
> sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
> tmpfs /sys/fs/cgroup tmpfs rw,nosuid,nodev,noexec,relatime,mode=755 0 0
> cgroup /sys/fs/cgroup/systemd cgroup 
> rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd
>  0 0
> cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 
> 0 0
> cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 
> 0 0
> cgroup /sys/fs/cgroup/net_cls,net_prio cgroup 
> rw,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0
> cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids 0 0
> cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0
> cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
> cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
> cgroup /sys/fs/cgroup/cpu,cpuacct cgroup 
> rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0
> cgroup /sys/fs/cgroup/perf_event cgroup 
> rw,nosuid,nodev,noexec,relatime,perf_event 0 0
> mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0
> /dev/sdb /etc/resolv.conf ext4 rw,noatime,nodiratime,commit=300,data=ordered 
> 0 0
> /dev/sdb /etc/hostname ext4 rw,noatime,nodiratime,commit=300,data=ordered 0 0
> /dev/sdb /etc/hosts ext4 rw,noatime,nodiratime,commit=300,data=ordered 0 0
> shm /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime,size=65536k 0 0
> devpts /dev/console devpts 
> rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666 0 0
> 
> root@d81f634fe4a0:/# apt-get update && apt-get -y --no-install-recommends 
> install pbuilder
> 
> [...]
> 
> root@d81f634fe4a0:/# pbuilder create --distribution buster
> W: /root/.pbuilderrc does not exist
> W: cgroups are not available on the host, not using them.
> I: Distribution is buster.
> I: Current time: Tue Jun 18 13:27:34 UTC 2019
> I: pbuilder-time-stamp: 1560864454
> I: Building the build environment
> I: running debootstrap
> /usr/sbin/debootstrap
> I: Retrieving InRelease 
> I: Checking Release signature
> I: Valid Release signature (key id 16E90B3FDF65EDE3AA7F323C04EE7237B7D453EC)
> I: Retrieving Packages 
> I: Validating Packages 
> I: Resolving dependencies of required packages...
> I: Resolving dependencies of base packages...
> I: Checking component main on http://deb.debian.org/debian...
> I: Retrieving libacl1 2.2.53-4
> I: Validating libacl1 2.2.53-4
> 
> [...]
> 
> W: Failure trying to run: chroot "/var/cache/pbuilder/build/489" mount -t 
> proc proc /proc
> W: See /var/cache/pbuilder/build/489/debootstrap/debootstrap.log for details
> 
> [...]
> 
> Setting up aptitude (0.8.11-7) ...
> update-alternatives: using /usr/bin/aptitude-curses to provide 
> /usr/bin/aptitude (aptitude) in auto mode
> Processing triggers for libc-bin (2.28-10) ...
> I: Copying back the cached apt archive contents
> I: new cache content 'aptitude-common_0.8.11-7_all.deb' added
> I: new cache content 'libboost-iostreams1.67.0_1.67.0-13_amd64.deb' added
> I: new cache content 'aptitude_0.8.11-7_amd64.deb' added
> I: new cache content 'libsqlite3-0_3.27.2-3_amd64.deb' added
> I: new cache content 'libxapian30_1.4.11-1_amd64.deb' added
> I: new cache content 'libcwidget3v5_0.5.17-11_amd64.deb' added
> I: new cache content 'libboost-system1.67.0_1.67.0-13_amd64.deb' added
> I: new cache content 'libsigc++-2.0-0v5_2.10.1-2_amd64.deb' added
> mount: failed to read mtab: No such file or directory
> mount: failed to read mtab: No such file or directory
> I: unmounting dev/pts filesystem
> I: unmounting dev/shm filesystem
> I: unmounting proc filesystem
> I: unmounting sys filesystem
> I: creating base tarball [/var/cache/pbuilder/base.tgz]
> mount: failed to read mtab: No such file or directory
> I: cleaning the build env 
> I: removing directory /var/cache/pbuilder/build/489 and its subdirectories
> rm: cannot remove '/var/cache/pbuilder/build/489/dev/ptmx': Device or 
> resource busy
> mount: failed to read mtab: No such file or directory
> I: cleaning the build env 
> I: removing directory /var/cache/pbuilder/build/489 and its subdirectories
> rm: cannot remove '/var/cache/pbuilder/build/489/dev/ptmx': Device or 
> resource busy
> rmdir: failed to remove '/var/cache/pbuilder/build/489/dev': Directory not 
> empty
> rmdir: failed to remove '/var/cache/pbuilder/build/489': Directory not empty
> 
> root@d81f634fe4a0:/# cat /proc/mounts
> cat: /proc/mounts: No such file or directory
> 
> root@d81f634fe4a0:/# mount proc /proc -t proc
> root@d81f634fe4a0:/# cat /proc/mounts
> overlay / overlay 
> rw,relatime,lowerdir=/var/lib/docker/overlay2/l/TPOD4JNRBNCTMXNHYCY5XVRBQ3:/var/lib/docker/overlay2/l/TSD62UVCIJQ2LJ4XTUHKTVEK77,upperdir=/var/lib/docker/overlay2/aa29cac2d0ebecfb12fdd71a9952845140052615f2bd746c4336daa8d7a4d533/diff,workdir=/var/lib/docker/overlay2/aa29cac2d0ebecfb12fdd71a9952845140052615f2bd746c4336daa8d7a4d533/work
>  0 0
> tmpfs /dev tmpfs rw,nosuid,size=65536k,mode=755 0 0
> devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666 
> 0 0
> sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
> tmpfs /sys/fs/cgroup tmpfs rw,nosuid,nodev,noexec,relatime,mode=755 0 0
> cgroup /sys/fs/cgroup/systemd cgroup 
> rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd
>  0 0
> cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 
> 0 0
> cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 
> 0 0
> cgroup /sys/fs/cgroup/net_cls,net_prio cgroup 
> rw,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0
> cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids 0 0
> cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0
> cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
> cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
> cgroup /sys/fs/cgroup/cpu,cpuacct cgroup 
> rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0
> cgroup /sys/fs/cgroup/perf_event cgroup 
> rw,nosuid,nodev,noexec,relatime,perf_event 0 0
> mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0
> /dev/sdb /etc/resolv.conf ext4 rw,noatime,nodiratime,commit=300,data=ordered 
> 0 0
> /dev/sdb /etc/hostname ext4 rw,noatime,nodiratime,commit=300,data=ordered 0 0
> /dev/sdb /etc/hosts ext4 rw,noatime,nodiratime,commit=300,data=ordered 0 0
> shm /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime,size=65536k 0 0
> devpts /dev/console devpts 
> rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666 0 0
> devpts /var/cache/pbuilder/build/489/dev/ptmx devpts 
> rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666 0 0
> proc /proc proc rw,relatime 0 0
> 
> 
> debootstrap.log contains the following message regarding the proc mount
> 
> mount: /proc: mount(2) system call failed: Too many levels of symbolic links.

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-

Attachment: signature.asc
Description: PGP signature

Reply via email to