dom0/core: create HVM private.img if it doesn't exists

This commit is contained in:
Marek Marczykowski 2012-03-11 13:28:25 +01:00
parent 6f13ceba0c
commit 466eaa02c1

View File

@ -2241,9 +2241,11 @@ class QubesHVm(QubesVm):
format(self.root_img))
if not os.path.exists (self.private_img):
raise QubesException (
"VM private image file doesn't exist: {0}".\
print >>sys.stderr, "WARNING: Creating empty VM private image file: {0}".\
format(self.private_img))
f_private = open(self.private_img, "w")
f_private.truncate(default_private_img_size)
f_root.close()
return True