[libvirt] [PATCH] lxc: Fix 'autostart' doesn't take effect actually

Ryota Ozaki ozaki.ryota at gmail.com
Thu Jul 29 14:21:17 UTC 2010


lxcStartup forgot to call lxcAutostartConfigs. Fix it.

This patch should fix https://bugzilla.redhat.com/show_bug.cgi?id=589863 .
---
 src/lxc/lxc_driver.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c
index 4fc1ecd..b286692 100644
--- a/src/lxc/lxc_driver.c
+++ b/src/lxc/lxc_driver.c
@@ -1928,6 +1928,9 @@ static int lxcStartup(int privileged)
     virHashForEach(lxc_driver->domains.objs, lxcReconnectVM, lxc_driver);
 
     lxcDriverUnlock(lxc_driver);
+
+    lxcAutostartConfigs(lxc_driver);
+
     return 0;
 
 cleanup:
-- 
1.6.6.1




More information about the libvir-list mailing list