Update vmware layer metadata file warning to be less doom and gloom.

This commit is contained in:
Eve
2023-10-13 09:29:46 +01:00
parent 310b6508db
commit e45380f4f5
+4 -1
View File
@@ -4,6 +4,7 @@
import contextlib
import logging
import struct
import os
from typing import Any, Dict, List, Optional
from volatility3.framework import constants, exceptions, interfaces
@@ -232,8 +233,10 @@ class VmwareStacker(interfaces.automagic.StackerLayerInterface):
)
if not vmss_success and not vmsn_success:
vmem_file_basename = os.path.basename(location)
example_vmss_file_basename = os.path.basename(vmss)
vollog.warning(
f"No metadata file alongside VMEM file! A VMSS or VMSN file is required to correctly process a VMEM file. These should be placed in the same directory with the same file name, e.g. sample.vmem and sample.vmsn.",
f"No metadata file found alongside VMEM file. A VMSS or VMSN file may be required to correctly process a VMEM file. These should be placed in the same directory with the same file name, e.g. {vmem_file_basename} and {example_vmss_file_basename}.",
)
return None
new_layer_name = context.layers.free_layer_name("VmwareLayer")