Commit e90b49d3 by Jean-Tiare LE BIGOT Committed by Stéphane Graber

As discussed on ML, do not clean autodev dir on reboot

parent a68e7131
...@@ -1541,6 +1541,9 @@ int lxc_delete_autodev(struct lxc_handler *handler) ...@@ -1541,6 +1541,9 @@ int lxc_delete_autodev(struct lxc_handler *handler)
if ( lxc_conf->autodev <= 0 ) if ( lxc_conf->autodev <= 0 )
return 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 * Use the same logic as mk_devtmpfs to compute candidate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment