Package: dash Version: 0.5.7-4+b1 Severity: important Dear Maintainer,
When run under dash, systemd-detect-virt returns "none" in a systemd-nspawn chroot'd environment when it should not; same command under bash works as expected. Because /bin/sh is linked to /bin/dash, this causes the MAKEDEV post-inst script not to realize it's in a virtual environment (despite tests added in 2.3.1-93 and 2.3.1-94 versions of makedev package to detect precisely this situation). it will, therefore, attempt to inappropriately create devices in the chroot. Which fails horribly, resulting in an uninstalled/unconfigured package. (actually many, in a debootstrap run) Which makes it more awkward than it should be to build an OS image via debootstrap in a systemd-nspawn container without hackery or workarounds. $ systemd-nspawn -D jessie-18-10-10/ /bin/bash -c "systemd-detect-virt" Spawning container jessie-18-10-10 on /data/PXE/squashbuilder/jessie-18-10-10. Press ^] three times within 1s to kill container. systemd-nspawn Container jessie-18-10-10 exited successfully. $ systemd-nspawn -D jessie-18-10-10/ /bin/dash -c "systemd-detect-virt" Spawning container jessie-18-10-10 on /data/PXE/squashbuilder/jessie-18-10-10. Press ^] three times within 1s to kill container. none Container jessie-18-10-10 failed with error code 1. -- System Information: Debian Release: 8.11 APT prefers oldstable APT policy: (500, 'oldstable') Architecture: amd64 (x86_64) Kernel: Linux 4.18.10-arch1-1-ARCH (SMP w/8 CPU cores; PREEMPT) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Init: unable to detect Versions of packages dash depends on: ii debianutils 4.4+b1 ii dpkg 1.17.27 ii libc6 2.19-18+deb8u10 dash recommends no packages. dash suggests no packages. -- debconf information: * dash/sh: true