From d106717895faf6eddedab5568763511a28d23d7b Mon Sep 17 00:00:00 2001 From: Fiona Ebner Date: Fri, 4 Apr 2025 15:31:55 +0200 Subject: [PATCH] backup: bitmap action to human: lie about TPM state 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 Tested-by: Wolfgang Bumiller Reviewed-by: Wolfgang Bumiller Link: https://lore.proxmox.com/20250404133204.239783-21-f.ebner@proxmox.com --- PVE/VZDump/QemuServer.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm index 0a9b6a9c..0930a0f9 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";