Subject: "E: Failed to re-mount /: Invalid argument" if I run cdebootstrap from chroot
Date: Fri, 17 Nov 2017 13:33:51 +0000
Package: cdebootstrap
Version: 0.7.7+b1
Severity: important
Steps to reproduce.
* I have host stretch amd64 (let's call it A). I run:
$ sudo cdebootstrap -f minimal stretch /tmp/target http://deb.debian.org/debian # Here I created system B
$ sudo chroot /tmp/target apt-get update
$ sudo chroot /tmp/target apt-get install cdebootstrap
$ sudo chroot /tmp/target cdebootstrap -f minimal stretch /tmp/target http://deb.debian.org/debian # Here I try to create system C
* And I got "E: Failed to re-mount /: Invalid argument"
Here is full log: http://paste.debian.net/996232
If I try to mount /proc, /dev, /dev/pts and /sys (and create symlink /etc/mtab -> /proc/mounts), it still doesn't work.
If I use systemd-nspawn instead of chroot, it works.
This bug report is sent from system B running in systemd-nspawn.
-- System Information:
Debian Release: 9.1
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages cdebootstrap depends on:
ii debian-archive-keyring 2017.5
ii gpgv 2.1.18-8~deb9u1
ii libbz2-1.0 1.0.6-8.1
ii libc6 2.24-11+deb9u1
ii libcurl3-gnutls 7.52.1-5
ii libdebian-installer-extra4 0.110
ii libdebian-installer4 0.110
ii liblzma5 5.2.2-1.2+b1
ii zlib1g 1:1.2.8.dfsg-5
cdebootstrap recommends no packages.
Versions of packages cdebootstrap suggests:
pn qemu-user-static <none>
-- no debconf information
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.