[pkg-lxc-devel] Bug#839843: /usr/bin/lxc-create: Ran rm -rf on an entire filesystem after failing to create a container

Pierre-Elliott Bécue peb at debian.org
Thu Jan 10 23:12:43 GMT 2019

Le samedi 29 octobre 2016 à 01:37:05+0200, Christian Brauner a écrit :
> On Sat, Oct 29, 2016 at 12:38:40AM +0200, Christian Brauner wrote:
> > On Wed, 05 Oct 2016 13:25:18 -0400 Matthew Gabeler-Lee
> > <cheetah at fastcat.org> wrote:
> > > [orig bug report]
> > 
> > Hi,
> > 
> > Can you please specify the exact commands you used to create the container,
> > and the commands you used to clean up the partial directory. The
> > partial directory
> > should usually be cleaned up by LXC itself. So I'm wondering if this
> > has anything
> > to do with it. If it's not too much trouble, could you also file a bug against
> > https://github.com/lxc/lxc and link in this one here?
> > 
> > Christian
> On second look, there is something that confuses me about this bug report:
> You said that you ran lxc-create and then Ctrl+Ced it and then:
> > > As I started to go WTF, this pops out on the console used for the original
> > > incorrect lxc-create:
> > >
> > > lxc-destroy: utils.c: _recursive_rmdir: 170 _recursive_rmdir: failed to delete /scratch
> > > lxc-destroy: lxccontainer.c: container_destroy: 2384 Error destroying rootfs for centos7-32bit-lxc
> > > Container is not defined
> > > exiting...
> This confuses me as the output can only come from running lxc-destroy. So you
> must have called the lxc-destroy command. lxc-create would not cause this error
> message to be printed. Again, to have any idea of what could possibly cause this
> we need to know the exact commands you used.

Hi Christian, Matthew,

This one is old, sorry for not giving input earlier.

Christian, sadly, xxx at bugs.d.o doesn't reach the original poster of the
You have to keep him in copy of your answers.

Seeing your recent mails on bts I guess you know better now, but this is the
reason you got no answer I guess.

Matthew, I'm really sorry about the bad experience you've met in 2016. I
guess you don't have the reply to Christian question three years after.

I'll let the bug open, but I guess it'll never find a solution.


[1] https://www.debian.org/Bugs/Developer

Pierre-Elliott Bécue
GPG: 9AE0 4D98 6400 E3B6 7528  F493 0D44 2664 1949 74E2
It's far easier to fight for one's principles than to live up to them.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-lxc-devel/attachments/20190111/25d06ca7/attachment.sig>

More information about the Pkg-lxc-devel mailing list