mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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:
1 parent
7ffcc43b02
commit
cbdc70f049
1 file changed
+7
@@ -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})
|
||||
|
||||
|
||||