From cd8c64b345277dbe07f288e8d912647a1a313896 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sun, 11 Mar 2012 00:30:49 +0100 Subject: [PATCH] dom0/hvm: detect missing private.img --- dom0/qvm-core/qubes.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index 9d16677b..4a1e97bc 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -2238,6 +2238,11 @@ class QubesHVm(QubesVm): "VM root image file doesn't exist: {0}".\ format(self.root_img)) + if not os.path.exists (self.private_img): + raise QubesException ( + "VM private image file doesn't exist: {0}".\ + format(self.private_img)) + return True def reset_volatile_storage(self, **kwargs):