Bug#833525: debootstrap: Deleted my entire /home partition using "mostly harmless" debootstrap --print-debs option
On Fri, 2016-08-05 at 17:15 +0200, Johannes Schauer wrote:
> Control: tag -1 + patch
> On Fri, 05 Aug 2016 13:55:14 +0100 Brian Drummond <firstname.lastname@example.org
> n.co.uk> wrote:
> > *** Reporter, please consider answering these questions, where
> > appropriate ***
> > 8) I said this was embarassing...
> > * What exactly did you do (or not do) that was effective (or
> > ineffective)?
> > debootstrap --print-debs /chroot/i386
> if I understand correctly, the problem is two-fold:
> - debootstrap removes everything in a directory even if there was
> stuff in it
> beforehand (this should not happen)
> - debootstrap removes recursively across filesystem boundaries (how
> was this
> not noticed earlier?)
> The following patch should fix this:
If I understand the patch, it should have the desired effect.
I find myself strangely reluctant to test it ... may I
(I know ... why don't I just chroot into a safe place and test it
Hopefully it will be accepted into Debian and stop somebody else making
such a fool of themselves...