detect-virt: add --cvm option

The --cvm option detects whether the OS is running inside a confidential
virtual machine.

Related: https://github.com/systemd/systemd/issues/27604
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé
2023-07-06 12:20:04 +01:00
committed by Luca Boccassi
parent a577a61625
commit 5e0c61f64d
3 changed files with 29 additions and 1 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ _systemd_detect_virt() {
local i verb comps
local -A OPTS=(
[STANDALONE]='-h --help --version -c --container -v --vm -q --quiet
[STANDALONE]='-h --help --version -c --container -v --vm -q --quiet --cvm
--private-users'
)