mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
19 lines
346 B
Bash
19 lines
346 B
Bash
#!/bin/bash
|
|
|
|
# This scripts must be called the following way:
|
|
# vtpm-delete <vtpm uuid>
|
|
# or
|
|
# vtpm-delete --vmname <vm name>
|
|
|
|
dir=$(dirname "$0")
|
|
. "$dir/vtpm-common.sh"
|
|
|
|
if [ "$1" == "--vmname" ]; then
|
|
vtpm_uuid=$(vtpm_uuid_from_vmname $2)
|
|
if [ "$vtpm_uuid" != "" ];then
|
|
vtpm_delete_instance $vtpm_uuid
|
|
fi
|
|
else
|
|
vtpm_delete_instance $1
|
|
fi
|