From 1e45d297b3086c9b1f686c6ee153336428f77704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 12 Jul 2017 21:37:12 +0200 Subject: [PATCH] storage: add comment about source volume lookup --- qubes/storage/__init__.py | 3 +++ 1 file changed, 3 insertions(+) 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