diff --git a/qubes/storage/__init__.py b/qubes/storage/__init__.py index 92cfb634..3cb912c9 100644 --- a/qubes/storage/__init__.py +++ b/qubes/storage/__init__.py @@ -351,6 +351,9 @@ class Storage(object): for name, conf in self.vm.volume_config.items(): if 'source' in conf: template = getattr(vm, 'template', None) + # recursively lookup source volume - templates may be + # chained (TemplateVM -> AppVM -> DispVM, where the + # actual source should be used from TemplateVM) while template: # we have no control over VM load order, # so initialize storage recursively if needed