From 907feccab12745f5983523b756bcdcd7e623889c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafa=C3=ABl=20Kooi?=
<48814281+RA-Kooi@users.noreply.github.com>
Date: Mon, 22 Jan 2024 17:13:21 +0100
Subject: [PATCH 0203/1160] machine-id-setup: Generate stable machine IDs based
on Xen hypervisor UUID
(cherry picked from commit 98d550baa9086a0c5d531a67d263357270ebadf0)
src/shared/machine-id-setup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -78,7 +78,7 @@ static int generate_machine_id(const char *root, sd_id128_t *ret) {
return 0;
}
- } else if (IN_SET(detect_vm(), VIRTUALIZATION_KVM, VIRTUALIZATION_AMAZON, VIRTUALIZATION_QEMU)) {
+ } else if (IN_SET(detect_vm(), VIRTUALIZATION_KVM, VIRTUALIZATION_AMAZON, VIRTUALIZATION_QEMU, VIRTUALIZATION_XEN)) {
/* If we are not running in a container, see if we are running in a VM that provides
* a system UUID via the SMBIOS/DMI interfaces. Such environments include QEMU/KVM
--
2.33.0