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

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

parent f0d02950
...@@ -1498,6 +1498,9 @@ int lxc_delete_autodev(struct lxc_handler *handler) ...@@ -1498,6 +1498,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