[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#840372: debootstrap: second-stage fails within systemd-nspawn: proc already mounted

On Tue, 17 Apr 2018, Hideki Yamane wrote:
> > So it looks like systemd-nspawn already took care of mounting /proc and
> > debootstrap fails when trying to do the same? Maybe debootstrap could
> > just skip mounting /proc if this mount is already present?
>  Here's a proposed patch.

Your patch will try to umount /proc even if it has not been mounted by
debootstrap. That's wrong. If you detect that /proc was handled outside of
debootstrap, then you should also not umount it.

And the handling of /sys should be entirely separate from /proc. Even if
/proc was already mounted, you want debootstrap to ensure that /sys is
mounted too.

Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: https://www.freexian.com/services/debian-lts.html
Learn to master Debian: https://debian-handbook.info/get/

Reply to: