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.eb...@proxmox.com>
---

New in v5.

 PVE/VZDump/QemuServer.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm
index 068046ae..d296986a 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



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to