Bug#845581: initramfs built in a chroot may lack /etc/mtab
Package: initramfs-tools-core
Version: 0.125
Severity: important
mkinitramfs does:
# Remove any looping or broken symbolic links, since they break cpio.
[ "${verbose}" = y ] && xargs_verbose="-t"
(cd "${DESTDIR}" && find . -type l -printf '%p %Y\n' | sed -n 's/ [LN]$//p' \
| xargs ${xargs_verbose:-} -rL1 rm -f)
The comment used to be true when we used the cpio --dereference option,
but we have not done so since version 0.99.
vmdebootstrap installs packages in a chroot without /proc mounted, thus
${DESTDIR}/etc/mtab is a broken link and this command deletes it. We
should remove this code.
Ben.
-- System Information:
Debian Release: stretch/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.8.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages initramfs-tools-core depends on:
ii cpio 2.11+dfsg-5
ii klibc-utils 2.0.4-9
ii kmod 23-1
ii udev 232-6
Versions of packages initramfs-tools-core recommends:
ii busybox 1:1.22.0-19
Versions of packages initramfs-tools-core suggests:
ii bash-completion 1:2.1-4.4
-- no debconf information
Reply to: