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 <f.ebner@proxmox.com>
Tested-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Reviewed-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Link: https://lore.proxmox.com/20250404133204.239783-21-f.ebner@proxmox.com
This commit is contained in:
Fiona Ebner 2025-04-04 15:31:55 +02:00 committed by Thomas Lamprecht
parent e74284d8c6
commit d106717895

View File

@ -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";