From b94024fafb60242f6a6f32cbdbd43352da0af663 Mon Sep 17 00:00:00 2001 From: Vasiliy Stelmachenok Date: Sun, 28 Jun 2026 22:11:30 +0300 Subject: [PATCH] Only match hardware virtualization as environment types Otherwise, running inside chroot (as in installation through calamares) will not result in a matching profile, since systemd-detect-virt returns the container type rather than virtualization. Signed-off-by: Vasiliy Stelmachenok --- src/data.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/data.rs b/src/data.rs index f85a555..701c023 100644 --- a/src/data.rs +++ b/src/data.rs @@ -371,6 +371,7 @@ pub fn get_all_devices_of_profile(devices: &ListOfDevicesT, profile: &Profile) - if let Some(environment_types) = &profile.environment_types { let environment_type = Exec::cmd("systemd-detect-virt") + .arg("--vm") .capture() .expect("Failed to detect environment type") .stdout_str()