backup/restore: do not fail the whole restore when qvm-appmenus is missing
Fixes QubesOS/qubes-issues#2991
This commit is contained in:
parent
6568d624cc
commit
f98ea4a520
@ -1697,7 +1697,7 @@ class BackupRestore(object):
|
|||||||
subprocess.check_call(
|
subprocess.check_call(
|
||||||
['qvm-appmenus', '--set-whitelist=-', vm.name],
|
['qvm-appmenus', '--set-whitelist=-', vm.name],
|
||||||
stdin=stream)
|
stdin=stream)
|
||||||
except subprocess.CalledProcessError:
|
except (subprocess.CalledProcessError, FileNotFoundError):
|
||||||
self.log.error('Failed to set application list for %s', vm.name)
|
self.log.error('Failed to set application list for %s', vm.name)
|
||||||
|
|
||||||
def _handle_volume_data(self, vm, volume, stream):
|
def _handle_volume_data(self, vm, volume, stream):
|
||||||
|
Loading…
Reference in New Issue
Block a user