Package: mmdebstrap Version: 0.4.1-3 Severity: normal File: /usr/bin/mmdebstrap
I regularly debootstrap on the far end of an SSH connection. This is approximately ssh otherplace debootstrap buster /tmp/x http://apt/debian When I try this with mmdebstrap, it hangs forever waiting for a sources.list on stdin, EVEN THOUGH I have supplied one on the CLI. ssh otherplace mmdebstrap buster /tmp/x http://apt/debian [...] I: Reading sources.list from standard input... This is because mmdebstrap:1957 assumes if stdin is either a tty, or is a sources.list. >From the manpage, I think this should happen IF AND ONLY IF the mirrors >argument is "-" <a mmdebstrap x y z # ignore stdin (mirrors are "z") <a mmdebstrap x y - # read from stdin (mirrors are "a") <a mmdebstrap x y # ignore stdin (mirrors are default) You can reproduce other silly behaviours with: mmdebstrap <&- mmdebstrap </dev/zero As a workaround, "mmdebstrap </dev/null" seems to work. PS: I set DEBIAN_FRONTEND &c, so postinsts don't need a tty either. -- System Information: Debian Release: 10.0 APT prefers stable APT policy: (990, 'stable'), (500, 'proposed-updates'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-5-amd64 (SMP w/2 CPU cores) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages mmdebstrap depends on: ii apt 1.8.2 ii perl 5.28.1-6 ii perl-doc 5.28.1-6 Versions of packages mmdebstrap recommends: ii arch-test 0.15-2 ii fakechroot 2.19-3.2 ii fakeroot 1.23-1 ii mount 2.33.1-0.1 ii pseudo [fakeroot] 1.9.0+git20180920-1 ii uidmap 1:4.5-1.1 Versions of packages mmdebstrap suggests: pn binfmt-support <none> ii dpkg-dev 1.19.7 ii proot 5.1.0-1.3 pn qemu-user <none> pn qemu-user-static <none> -- no debconf information