]> git.proxmox.com Git - pve-zsync.git/commitdiff
add tpmstate to disk keys
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 3 Jan 2022 10:17:20 +0000 (11:17 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 10 Jan 2022 12:41:41 +0000 (13:41 +0100)
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>
pve-zsync

index 39ead0de8ccadd59e36191c899381e2f5535784b..b466076225c139f5da7383ec613e527c7f996772 100755 (executable)
--- a/pve-zsync
+++ b/pve-zsync
@@ -53,7 +53,7 @@ my $HOSTRE = "(?:$HOSTv4RE1|\\[$IPV6RE\\])";       # ipv6 must always be in brac
 # 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($$);