From 7dda25eedaebbd89f4ce1f1146a006d10d0b6bd8 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Tue, 13 Feb 2007 16:36:49 -0500 Subject: Use the paths that SELinux will contextify correctly, for now, until we add an override parameter. --- koan/app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koan/app.py b/koan/app.py index 455beea1..04b8e0c8 100755 --- a/koan/app.py +++ b/koan/app.py @@ -632,13 +632,13 @@ class Koan: """ Determine where to store the virtualization file. """ - if not os.path.exists("/var/lib/virtimages"): + if not os.path.exists("/var/lib/xen/images"): try: - os.mkdir("/var/lib/virtimages") + os.makedirs("/var/lib/xen/images") except: pass vname = self.safe_load(data,'virt_name','xen_name') - return os.path.join("/var/lib/virtimages","%s.disk" % vname) + return os.path.join("/var/lib/xen/images","%s.disk" % vname) def calc_virt_filesize(self,data): """ -- cgit