Create /var/lib/xend/domains on startup if it doesn't exist.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2006-11-01 13:50:02 +00:00
1 parent 7ffcc43b02
commit cbdc70f049
1 file changed
+7
+7
View File
@@ -84,6 +84,13 @@ class XendDomain:
def init(self):
"""Singleton initialisation function."""
dom_path = self._managed_path()
try:
os.stat(dom_path)
except OSError:
log.info("Making %s", dom_path)
os.makedirs(dom_path, 0755)
xstransact.Mkdir(XS_VMROOT)
xstransact.SetPermissions(XS_VMROOT, {'dom': DOM0_ID})
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.