linux: intel VMCoreInfo: The _direct_metadata class attribute needs to be modified; otherwise, it will only exist within the instance namespace.

This commit is contained in:
Gustavo Moreira
2024-11-19 12:47:56 +11:00
parent 96f5fdae2f
commit 9f6d194980
+2 -2
View File
@@ -379,8 +379,8 @@ class LinuxIntelVMCOREINFOStacker(interfaces.automagic.StackerLayerInterface):
aslr_shift,
dtb,
)
# Add the vmcoreinfo dict to the layer metadata
layer._direct_metadata = collections.ChainMap(
# Add the vmcoreinfo dict to the layer class metadata
layer.__class__._direct_metadata = collections.ChainMap(
{"vmcoreinfo": vmcoreinfo}, layer._direct_metadata
)