From 9205fbb336345be58793fd325126fcd755a4ce14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 6 Sep 2015 00:06:09 +0200 Subject: [PATCH] backup: fix R2B3 and older backup restore (#1124) Similar issue to qubesos/qubes-issues#1124 --- core/backup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/backup.py b/core/backup.py index 92280a7c..2493d4a8 100644 --- a/core/backup.py +++ b/core/backup.py @@ -1706,6 +1706,10 @@ def backup_restore_prepare(backup_location, passphrase, options=None, if check_vm.qid == 0: return os.path.exists(os.path.join(backup_dir, 'dom0-home')) + # DisposableVM + if check_vm.dir_path is None: + return False + backup_vm_dir_path = check_vm.dir_path.replace( system_path["qubes_base_dir"], backup_dir)