From: Jean-Tiare LE BIGOT Date: Wed, 13 Aug 2014 08:30:56 +0000 (+0200) Subject: As discussed on ML, do not clean autodev dir on reboot X-Git-Tag: lxc-1.0.6~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e90b49d38a1b4626d9d6838fdd5f880c6b67821b;p=thirdparty%2Flxc.git As discussed on ML, do not clean autodev dir on reboot Signed-off-by: Jean-Tiare LE BIGOT Acked-by: Stéphane Graber --- 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