]> 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>
Sat, 16 Aug 2014 01:07:35 +0000 (21:07 -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 f04cbbe75d6469bd9feb358e920ea9ec842d8e9f..2b3aff130a1f82bf0e269ca02669937000b7d888 100644 (file)
@@ -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