summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/shared/virt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/virt.c b/src/shared/virt.c
index 7c1381f4b8..aa3501f429 100644
--- a/src/shared/virt.c
+++ b/src/shared/virt.c
@@ -106,7 +106,7 @@ static int detect_vm_devicetree(const char **_id) {
_cleanup_free_ char *hvtype = NULL;
int r;
- r = read_one_line_file("/sys/firmware/devicetree/base/hypervisor/compatible", &hvtype);
+ r = read_one_line_file("/proc/device-tree/hypervisor/compatible", &hvtype);
if (r >= 0) {
if (streq(hvtype, "linux,kvm")) {
*_id = "kvm";