Persistent Storage upgraded on every login
Steps to reproduce
Update an older Tails drive with persistent storage to Tails 5.14.
Expected behavior
Persistant storage is migrated to LUKS2 on initial unlock.
Actual behavior
The "Upgrading the persistent storage" is displayed every time I boot and unlock the drive.
Debugging details
(Dev-only drive, I can provide any other information that would be helpful.)
$ sudo cryptsetup luksDump /dev/disk/by-partlabel/TailsData
[sudo] password for amnesia:
LUKS header information
Version: 2
Epoch: 12
Metadata area: 16384 [bytes]
Keyslots area: 2064384 [bytes]
UUID: 9fba01b2-183d-476e-b11e-efa49912488a
Label: (no label)
Subsystem: (no subsystem)
Flags: (no flags)
Data segments:
0: crypt
offset: 2097152 [bytes]
length: (whole device)
cipher: aes-xts-plain64
sector: 512 [bytes]
Keyslots:
1: luks2
Key: 256 bits
Priority: normal
Cipher: aes-xts-plain64
Cipher key: 256 bits
PBKDF: argon2id
Time cost: 4
Memory: 739446
Threads: 2
Salt: 76 ba 48 ee 4e 35 77 12 2b 4d f7 44 d6 4d fc af
85 7f 7a 2f 7c 48 fa d8 80 2f ef c4 d9 6d a2 84
AF stripes: 4000
AF hash: sha256
Area offset:163840 [bytes]
Area length:131072 [bytes]
Digest ID: 0
Tokens:
Digests:
0: pbkdf2
Hash: sha256
Iterations: 281500
Salt: 7a 00 8b c7 9d 91 7e 75 0d 90 9b de 6b 93 09 a2
18 83 f6 14 eb bf b5 d1 4f 18 a8 11 4b 1d fc cb
Digest: 94 03 5f 8f 0d 7a d1 43 7c f8 d9 b1 2d 66 e0 01
95 87 ae cf
amnesia@amnesia:~$ free
total used free shared buff/cache available
Mem: 7824372 1663784 3509256 614136 2651332 5255920
Swap: 7824368 0 7824368