[pve-devel] [PATCH v8 qemu-server 11/11] backup: bitmap action to human: lie about TPM state
Wolfgang Bumiller
w.bumiller at proxmox.com
Thu Apr 3 14:31:09 CEST 2025
From: Fiona Ebner <f.ebner at proxmox.com>
The TPM state drive is newly attached each time, so it is fully
expected that a bitmap from last time would be missing.
Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
No changes to v7.
PVE/VZDump/QemuServer.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm
index 894e337..5cfe841 100644
--- a/PVE/VZDump/QemuServer.pm
+++ b/PVE/VZDump/QemuServer.pm
@@ -317,6 +317,8 @@ my $bitmap_action_to_human = sub {
} elsif ($action eq "invalid") {
return "existing bitmap was invalid and has been cleared";
} elsif ($action eq "missing-recreated") {
+ # Lie about the TPM state, because it is newly attached each time.
+ return "created new" if $info->{drive} eq 'drive-tpmstate0-backup';
return "expected bitmap was missing and has been recreated";
} else {
return "unknown";
--
2.39.5
More information about the pve-devel
mailing list