Package: mmdebstrap Version: 0.5.1 Severity: normal Tags: upstream Thanks a lot for mmdebstrap, I use it to generate images for my Xen cluster, it's efficient and works like a charm.
I have a small bug when using it to generate Jessie images with systemd components, when systemd's postinst invokes 'systemd-machine-id-setup' and this one fails because it cannot find any /dev/urandom. Reproduce with : ./mmdebstrap --mode=unshare --include systemd jessie jessie.tar.gz ... Setting up systemd (215-17+deb8u7) ... Failed to read /proc/cmdline. Ignoring: No such file or directory Failed to open /dev/urandom: Function not implemented dpkg: error processing package systemd (--install): subprocess installed post-installation script returned error exit status 1 I've worked around this by adding a --setup-hook='systemd-machine-id-setup --root $1' which is quite a hack and works because my host has systemd. And then I encounter a last (related?) bug : ./mmdebstrap --mode=unshare --setup-hook='systemd-machine-id-setup -- root $1' --include systemd jessie jessie.tar.gz ... I: installing apt... done E: run_chroot failed: E: cannot make_path ./dev/pts/ It seems than around line 777 when creating type==5/directory it goes thru the havemknod==false path and fails. But if I bypass this block, it proceeds with bind-mouting /dev/pts which works, and I get my working tarball. -- System Information: Debian Release: 10.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.19.0-6-amd64 (SMP w/4 CPU cores) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (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 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>