]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
As discussed on ML, do not clean autodev dir on reboot
authorJean-Tiare LE BIGOT <jean-tiare.le-bigot@ovh.net>
Wed, 13 Aug 2014 08:30:56 +0000 (10:30 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 22 Sep 2014 21:48:16 +0000 (17:48 -0400)
Signed-off-by: Jean-Tiare LE BIGOT <jean-tiare.le-bigot@ovh.net>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/conf.c

index 1bae678eed72ed4743434aff402aa1d547b425e2..b0b8603e03ed0732ebbb85d9cc87c3de396d592b 100644 (file)
@@ -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