backup: fix R2B3 and older backup restore (#1124)
Similar issue to qubesos/qubes-issues#1124
This commit is contained in:
parent
4a4d16feb9
commit
9205fbb336
@ -1706,6 +1706,10 @@ def backup_restore_prepare(backup_location, passphrase, options=None,
|
|||||||
if check_vm.qid == 0:
|
if check_vm.qid == 0:
|
||||||
return os.path.exists(os.path.join(backup_dir, 'dom0-home'))
|
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(
|
backup_vm_dir_path = check_vm.dir_path.replace(
|
||||||
system_path["qubes_base_dir"], backup_dir)
|
system_path["qubes_base_dir"], backup_dir)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user