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.1.0.alpha2~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c90734de6ef6540d14230222e743d4850924ec7;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 f04cbbe75..2b3aff130 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -1498,6 +1498,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