Less options results in simpler software. Let's reuse available lshw tool to detect if Berrymill is running on a VM or not. Typically, lshw -json will return a JSON data and then Berrymill can look for e.g. "vendor" (which will be QEMU or VMware etc) in case of VM.
NOTE: during packaging, lshw should be required as a dependency.
Less options results in simpler software. Let's reuse available
lshw
tool to detect if Berrymill is running on a VM or not. Typically,lshw -json
will return a JSON data and then Berrymill can look for e.g. "vendor" (which will be QEMU or VMware etc) in case of VM.NOTE: during packaging,
lshw
should be required as a dependency.