Skip to content

Commit

Permalink
q-dev: do not load block devices in offline mode
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrbartman committed Jun 12, 2024
1 parent 320f246 commit c347bfe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qubes/ext/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ def on_domain_init_load(self, vm, event):
"""Initialize watching for changes"""
# pylint: disable=unused-argument
vm.watch_qdb_path('/qubes-block-devices')
if vm.app.vmm.offline_mode:
self.devices_cache[vm.name] = {}
return
if event == 'domain-load':
# avoid building a cache on domain-init, as it isn't fully set yet,
# and definitely isn't running yet
Expand Down

0 comments on commit c347bfe

Please sign in to comment.