Kaynağa Gözat

backup: fix R2B3 and older backup restore (#1124)

Similar issue to qubesos/qubes-issues#1124
Marek Marczykowski-Górecki 8 yıl önce
ebeveyn
işleme
9205fbb336
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      core/backup.py

+ 4 - 0
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)