Ensures that a TPM state volume is synced too.
Reported on the PVE-User mailing list:
https://lists.proxmox.com/pipermail/pve-user/2021-December/172944.html
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
# targets are either a VMID, or a 'host:zpool/path' with 'host:' being optional
my $TARGETRE = qr!^(?:($HOSTRE):)?(\d+|(?:[\w\-_]+)(/.+)?)$!;
-my $DISK_KEY_RE = qr/^(?:(?:(?:virtio|ide|scsi|sata|efidisk|mp)\d+)|rootfs): /;
+my $DISK_KEY_RE = qr/^(?:(?:(?:virtio|ide|scsi|sata|efidisk|tpmstate|mp)\d+)|rootfs): /;
my $INSTANCE_ID = get_instance_id($$);