From e90b49d38a1b4626d9d6838fdd5f880c6b67821b Mon Sep 17 00:00:00 2001 From: Jean-Tiare LE BIGOT Date: Wed, 13 Aug 2014 10:30:56 +0200 Subject: [PATCH] As discussed on ML, do not clean autodev dir on reboot MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jean-Tiare LE BIGOT Acked-by: Stéphane Graber --- src/lxc/conf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 1bae678ee..b0b8603e0 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -1541,6 +1541,9 @@ int lxc_delete_autodev(struct lxc_handler *handler) if ( lxc_conf->autodev <= 0 ) return 0; + /* don't clean on reboot */ + if ( lxc_conf->reboot == 1 ) + return 0; /* * Use the same logic as mk_devtmpfs to compute candidate -- 2.47.2